Page 1 of 1

CnameTemplate - How to allow only letters/numbers?

Posted: Sat Jan 29, 2011 3:07 am
by Lineage
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision Number: 4488
L2JDP Revision Number: 7761

Hello,

How to allow players create character names with letters and numbers ONLY? Regardless if the first letter is Cap or not.

Thank You!

Re: CnameTemplate - How to allow only letters/numbers?

Posted: Sat Jan 29, 2011 5:59 am
by momo61
check in server.properties:

# ---------------------------------------------------------------------------
# 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 =

# This setting restricts names players can give to their pets.
# See CnameTemplate for details
PetNameTemplate =

Re: CnameTemplate - How to allow only letters/numbers?

Posted: Wed Feb 02, 2011 2:07 am
by Ralm
The place is that and you could tryed it.

Anyway, try to use this:

CnameTemplate = [A-Za-z0-9]*

This allows Capital Letters, small letters, numbers at any order. And any number of caracters in the same(handled by * at the end)