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));
}
Asocks — trusted and fast residential/mobile proxies at the lowest price on the market - $3 per 1 GB. Forget about bans and time consuming setup, grab our plug-and-play proxies!
See for yourself why others have vouched for our service. Click here to read their glowing endorsements! Afterwards, feel free to join our Discord where the conversation keeps going. ✨
Want to try them first? Reply to this thread, and we will send you a promo code for free 3GB!
Scryde banned our whole clan after they scam us with epics. They fked up abundance boxes drop, instead of 30 days epics we got real epics, then they took them away and banned us when we complained 😄
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