Page 1 of 2
Prevent creating characters with names like admin, gm etc.
Posted: Wed Feb 24, 2010 10:31 pm
by CubAfull
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision
3967:
L2JDP Revision
7115:
Hello ppl,
Can I use this template to prevent users from creating characters with names like admin, gm, gamemaster...?
Code: Select all
CnameTemplate = (?!.*(?i)(?:admin|gamemaster|gm).*)^[a-zA-Z0-9]{3,16}
if anyone has a solution that works, please write it...
Thank you.
Re: Prevent creating characters with names like admin, gm etc.
Posted: Wed Feb 24, 2010 10:52 pm
by CubAfull
BTW this template is executed by java or by pyton??
Not the same template for both...
pyton:
Code: Select all
(?i)(?!.*(?:admin|gamemaster|gm).*)^[a-z0-9]{3,16}
no tested (I can't right now

)
Re: Prevent creating characters with names like admin, gm etc.
Posted: Thu Feb 25, 2010 7:06 am
by Gnacik
Re: Prevent creating characters with names like admin, gm etc.
Posted: Thu Feb 25, 2010 7:54 am
by denser
it must be commited as option

may be it should work like kinda filter?
?admin?,admin*...etc
Re: Prevent creating characters with names like admin, gm etc.
Posted: Thu Feb 25, 2010 8:36 am
by jurchiks
just btw, it's forbidde N, not D
Re: Prevent creating characters with names like admin, gm etc.
Posted: Thu Feb 25, 2010 10:25 am
by denser
jurchiks wrote:just btw, it's forbidde N, not D
big deal

you can post patch with corrections. it not to hard

Re: Prevent creating characters with names like admin, gm etc.
Posted: Sun Apr 04, 2010 2:18 am
by CubAfull
Please DEV, commit this mod, its realy important!!
I have this working in my server for 2 months and no problem

Re: Prevent creating characters with names like admin, gm etc.
Posted: Sun Apr 04, 2010 3:30 pm
by Onepamopa
+1 to commit !
we had some issues with charnames like those ... (banned most of them, but they think of something new etc..)

Re: Prevent creating characters with names like admin, gm etc.
Posted: Mon Apr 05, 2010 12:08 am
by CubAfull
The pastebin link don't work anymore
please post again... can't find the file where i save this mod.

Re: Prevent creating characters with names like admin, gm etc.
Posted: Sat Apr 10, 2010 8:09 am
by Szponiasty
I have another question: how to filter national chars like óźłą etc?
Re: Prevent creating characters with names like admin, gm etc.
Posted: Sat Apr 10, 2010 8:16 am
by Gnacik
server.properties
CnameTemplate = [A-Za-z0-9-]{3,16}
Re: Prevent creating characters with names like admin, gm etc.
Posted: Tue Apr 13, 2010 10:15 pm
by hope
i have this in the config
CnameTemplate = [A-Za-z0-9-]{3,16}
but get this message in the console if i make the char admin
ERROR : Character name pattern of config is wrong!
so what is wrong
this is the full thing
Code: Select all
# ---------------------------------------------------------------------------# Misc Player Settings# --------------------------------------------------------------------------- # Character name template.# Examples:# CnameTemplate = [A-Z][a-z]{3,3}[A-Za-z0-9]*# The above setting will allow names with first capital letter, next three small letters,# and any letter (case insensitive) or number, like OmfgWTF1# CnameTemplate = [A-Z][a-z]*# The above setting will allow names only of letters with first one capital, like Omfgwtf# Default .* (allows any symbol)CnameTemplate = [A-Za-z0-9-]{3,16} # This setting restricts names players can give to their pets.# See CnameTemplate for detailsPetNameTemplate = [A-Za-z0-9-]{3,16} # Maximum number of characters per account.# Default: 7 (client limit)CharMaxNumber = 7
Re: Prevent creating characters with names like admin, gm etc.
Posted: Tue Apr 13, 2010 10:22 pm
by Probe
it might be the extra hyphen
should be
CnameTemplate = [A-Za-z0-9]{3-16}
and not
CnameTemplate = [A-Za-z0-9-]{3-16}
Re: Prevent creating characters with names like admin, gm etc.
Posted: Tue Apr 13, 2010 10:25 pm
by hope
tried it both ways
i have it now the way Gnacik has it showen on his post
Re: Prevent creating characters with names like admin, gm etc.
Posted: Tue Apr 13, 2010 10:47 pm
by hope
CnameTemplate = [A-Za-z0-9-]{3,16}
this works u cant make the name gm but u can make the name admin any one know how to stop the admin name being made