Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins DiscussionPlugin Releases! (Moderator: MordyT)Unicode Characters in Name KICK Plugin
Pages: [1]   Go Down
  Print  
Author Topic: Unicode Characters in Name KICK Plugin  (Read 2218 times) Bookmark and Share
Newbie
*
OS: Windows
Type: Home user
Gameservers: CoD6
Posts: 5
Offline Offline
« on: June 11, 2011, 04:17:16 PM »

Description:
----------------------------
This Plugin checks for NON-Printable ASCII / Unicode Characters in a Client's(Player's) name. If found, Kicks Player from the server with a message telling the reason why.
     (example of characters:    ï Ä ½ « ¼ » ¿ )


Reason for the Plugin:
----------------------------
In game Admins had a hard time monitoring and dealing with players with non-printable ASCII/Unicode characters in their names. Especially when a player's name only has those type of characters. (example: ソソソソ)  When a Player connects to the server, their name is checked with this plugin.  If their name contains any type of characters, which does not compile with the standard 101 keyboard characters, It Auto kicks the player with a message of why they where kicked.


Changelog:
-----------------------------
06-12-2011 v1.0.1
   Fixed redundancy of code and added global variables

06-09-2011 v1.0.0
   First Release
 
06-04-2011 v0.8b
   Added support for B3 v1.6
   Added ASCIIkick logging path variable to config settings.
   The log file name is 'asciikick.log' and it is Disabled.
   To Enable it, You have to Set the Full Directory path in the Config file asciikick.xml

05-29-2011 v0.6b
   Added Logging of Players Kicked seance B3 Database dose not recognize
   non printable ASCII / Unicode characters in a Client's name as of B3 version 1.4.

05-28-2011 v0.5b
   Fixed non existing attributes for dump.event
   Plugin works. Need to work on Config Announcement

The Beginning: 05-25-2011 v0.1b
   Built a python Regular Expression to search a Player's name of Unicode characters.


Note:
-----------------------------
This plugin was built and tested on a Windows 7 Dedicated COD6 (MW2) Gaming server running B3 version 1.4.  It was also tested with B3 version 1.6.  It should work with all COD Game Types.

Also, this plugin might work with other B3 supported Games.

This Plugin is powerful.  It will KICK all Admins, even Super Admins, if they have ASCII/Unicode characters in their names.


Download:
-----------------------------
ASCIIkick Plugin v1.0.1


About Info:
-----------------------------
I stopped coding over a decade ago and my main coding languages was Perl and PHP.  I ran across a problem one day kicking someone with a full Unicode name who was cheating.  I did not have access to an rcon tool but knew B3 was at my disposal.  I looked at the B3 plugins to see what type of interpreter was used.  Python...  Oh Boy...  I was suggested to build my plugin using a PHP script connecting to the server game logs to handle what I wanted to do.  I then thought, Some server owners might want the same type of plugin I wanted to build. So in a very short time and no Python scripting knowledge, I learned just the basics of Python to build my plugin to work with B3.

I hope you find this plugin useful as I do.  Almost every person that joined our game server with only Unicode characters in their names have been cheaters.  I just didn't want to deal with figuring out if this person is a cheater or not. 
I say, "Make your name with Standard Keyboard Characters!!!  Other wise, Your Not getting in... "

« Last Edit: June 12, 2011, 05:01:03 PM by Dr_Z » Logged

Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #1 on: June 11, 2011, 09:39:25 PM »

Nice plugin!
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Newbie
*
OS: Windows
Type: Home user
Gameservers: CoD6
Posts: 5
Offline Offline
« Reply #2 on: June 12, 2011, 05:23:32 PM »

Nice plugin!

Thanks MordyT. 

Just to let you know, I have Updated the ASCIIKick plugin to version 1.0.1.  Thanks to Courgette pointing out a few redundancies in my code along with a few tab issues that may cause some problems in the future which are now fixed.

It would be interesting to see this plugin tested on other B3 supported Game types and servers that have had problems with Players coming in with Unicode characters in their names.  I have no other means to test this but on a Win7 server with COD6 (MW2) Game type.

Feed back is most welcome....
----------------------
ASCIIKick Plugin v1.0.1 download
Logged
Beta Testers
*
OS: Windows
Type: Owner dedicated server(s)
Posts: 26
Offline Offline
« Reply #3 on: June 15, 2011, 03:42:59 AM »

Thanks for this plugin, cuz i saw a lot of cheater  with this not readable code xD.
I will test and i think like it much.
Logged
Beta Testers
*
OS: Windows
Type: Owner dedicated server(s)
Posts: 26
Offline Offline
« Reply #4 on: June 21, 2011, 03:04:35 AM »

It is possible to ban them directly ?
So u change the kick into ban ?
Aciiban plugin^^
I like your kicker and its really usefull.
Logged
Newbie
*
OS: Windows
Type: Home user
Gameservers: CoD6
Posts: 5
Offline Offline
« Reply #5 on: June 22, 2011, 05:17:27 AM »

It is possible to ban them directly ?
So u change the kick into ban ?
Aciiban plugin^^
I like your kicker and its really usefull.

The reason why I went with the KICK instead of the BAN, not all people with Unicode characters in their name are cheaters.  They can change their name and rejoin the server...
Logged
Beta Testers
*
OS: Windows
Type: Owner dedicated server(s)
Posts: 26
Offline Offline
« Reply #6 on: June 23, 2011, 02:40:47 AM »

The reason why I went with the KICK instead of the BAN, not all people with Unicode characters in their name are cheaters.  They can change their name and rejoin the server...

yea, forgotted that, thanks for answer.
Logged
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD 4 , COD 6
Posts: 154
Offline Offline
« Reply #7 on: July 09, 2011, 02:10:48 PM »

Why can't I get it to create a log?
Logged
Newbie
*
OS: Windows
Type: Home user
Gameservers: CoD6
Posts: 5
Offline Offline
« Reply #8 on: July 09, 2011, 03:53:43 PM »

Why can't I get it to create a log?

If your following the instructions in the 'asciikick.xml' file to configure the Full Path to B3's root directory, you should have no problems.  Just make sure you put a trailing \ slash at the end of the path.   
This may be what your missing and it's not creating the log file.  There are Examples in the .xml file to help you.
Example:  <set name="logpath"> C:\BigBrotherBot\ </set>

Hope this is helpful to you. 

The only other thing it could be is a Windows Security issue.
Logged
Jr. Member
**
OS: Windows
Type: Gameserver Rental Co.
Gameservers: Homefront
Posts: 22
Offline Offline
« Reply #9 on: July 16, 2011, 01:36:34 AM »

Thanks for this. I have installed this on my Homefront Server as I was having this issue the other day not being able to deal with odd named people.

Once i see that this works I'll come back and confirm.
Logged
Full Member
***
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4, CoD6, CoD7
Posts: 80
Offline Offline
Currently hosting 40+ b3 Bots!!!
WWW
« Reply #10 on: September 01, 2011, 07:15:20 AM »

Does this plugin kick a player if they have *any* Unicodec characters, or just if their entire name is made up of Unicode?  I have a lot of players in my servers with different symbols (such as the trademark symbol and the double arrow » symbol) as part of their name/clan tag.  Would they also be kicked?  If so, is there a way to tell the plugin to only kick players with names made entirely of Unicode, and leave the others alone?

Brendan "NinjaNife" West
Logged
Newbie
*
OS: Windows
Type: Home user
Gameservers: CoD6
Posts: 5
Offline Offline
« Reply #11 on: September 03, 2011, 09:13:50 PM »

Does this plugin kick a player if they have *any* Unicodec characters,
Yes

or just if their entire name is made up of Unicode?
Yes

I have a lot of players in my servers with different symbols (such as the trademark symbol and the double arrow » symbol) as part of their name/clan tag.  Would they also be kicked?
Sorry.. Yes they will be kicked too.

If so, is there a way to tell the plugin to only kick players with names made entirely of Unicode, and leave the others alone?
At this moment, there is no configuration setting in the plugin to do what you would like it to do. 
I would have to recode the Regular Expression in the main .PY file and add another Configuration setting to the XML file to satisfy everyone that uses this plugin.

I will try to update the plugin with your requests in the next few weeks if time permits me.
Logged
Tags: cod  Cod6  mw2 
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal