I made this code so only premium member can yell:
Code:
if (command.startsWith("yell") && command.length() > 8) {
if(premiumStatus >= 1){
if(!muted){
String text = command.substring(5);
yell(playerName +": " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
} else {
sM("You are muted you cannot yell!");
}
} else {
sM("You need to be a Premium Member to use the yell command.");
}
}
But only the thing that doesn't work is when a non premium try to yell, it doesn't say: "You need to be a Premium Member to use the yell command.". How can I make it so it can show?
Thanks.