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));
}
Thank you for sharing your experience. The study process is difficult for me now because I don’t have time to do my homework in parallel with the work process. But when I found out about nursing essay writer the learning process became much easier for me. I found assistants and was able to quickly complete coursework and laboratory work.
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hoodservices
https://campsite.bio/utchihaamkt
Question
l2jkain
Hi, I'm trying to restrict certain names. It says that the name is incorrect plus it creates the character.
error
Link to comment
Share on other sites
1 answer to this question
Recommended Posts