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!
CnameTemplate - How to allow only letters/numbers?
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 63
- Joined: Thu Jan 31, 2008 7:39 am
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: CnameTemplate - How to allow only letters/numbers?
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 =
# ---------------------------------------------------------------------------
# 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 =
-
- Posts: 154
- Joined: Sat Dec 25, 2010 10:09 pm
- Location: Portugal
Re: CnameTemplate - How to allow only letters/numbers?
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)
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)
My teachers XD: jurchiks