CnameTemplate - How to allow only letters/numbers?

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Lineage
Posts: 63
Joined: Thu Jan 31, 2008 7:39 am

CnameTemplate - How to allow only letters/numbers?

Post 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!
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

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

Post 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 =
Ralm
Posts: 154
Joined: Sat Dec 25, 2010 10:09 pm
Location: Portugal

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

Post 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)
My teachers XD: jurchiks
Post Reply