Commands.java
Add:
Code:
if (playerCommand.startsWith("settag") && playerCommand.length() > 7) {
if (c.isDonator < 1) {
c.sendMessage("Only special donators may use this feature.");
return;
}
String tag = playerCommand.substring(7);
if (tag.length() < 1 || tag.length() > 12) {
c.sendMessage("Yell tag must be 1-12 characters long!");
return;
}
String[] blocked = {"owner", "mod", "moderator", "admin"};
for (int i = 0; i < blocked.length; i++) {
if (tag.toLowerCase().contains(blocked[i])) {
c.sendMessage("Tag Blocked: Abuse = Ban");
return;
}
}
c.customYellTag = playerCommand.substring(7);
c.sendMessage("You changed your YellTag to: " + c.customYellTag);
return;
}
Player.java
Add this under one of the "public int" :
Code:
public String customYellTag = "Donator";
Playersave.java
Add under one of the "} else if ("
Code:
} else if (token.equals("character-yellTag")) {
p.customYellTag = token2;
Add under one of the "characterfile.write"
Code:
characterfile.write("character-yellTag = ", 0, 20);
characterfile.write(p.customYellTag, 0, p.customYellTag.length());