Hi, I'm trying to restrict certain names. It says that the name is incorrect plus it creates the character.
Part : CharacterCreate.java
if (Config.LIST_FORBIDDEN_NAMES.contains(_name.toLowerCase()))
{
sendPacket(CharCreateFail.REASON_INCORRECT_NAME);
return;
}
Part Config.java
public static List<String> LIST_FORBIDDEN_NAMES = new ArrayList<>();
LIST_FORBIDDEN_NAMES = new ArrayList<>();
for (String listid : server.getProperty("RestrictedNames", "fuck,dildo,admin").split(","))
{
LIST_FORBIDDEN_NAMES.add(String.valueOf(listid));
}
Weekend Of The Dwarfs Event!
The first event from a set of many, coming soon : 31 Jan - 2 Feb! A weekend dedicated to our hard working friends , dwarfs. During this weekend craft chance is increased by +10% and chance to obtain masterwork items is doubled. Spoil drop rate increased by 10%.
As you may have noticed, normal members cannot edit their own threads.
I have extended normal members to edit their own content up to 1440 minutes (24 hours or 1 day) after they made their topic/post.
To access unlimited edits of your contents, you need to upgrade to Premium or Gold Member .
Question
l2jkain
Hi, I'm trying to restrict certain names. It says that the name is incorrect plus it creates the character.
error
1 answer to this question
Recommended Posts