Code:if (command.startsWith("yell") && command.length() > 5 && !muted) { String text = command.substring(5); if((donator==1) && (playerRights<=1)){ yell("[Donator] "+ playerName + ": " + Character.toUpperCase(text.charAt(0)) + text.substring(1)); }else if(playerRights==1){ yell("[Mod] "+ playerName + ": " + Character.toUpperCase(text.charAt(0)) + text.substring(1)); }else if(playerRights==2){ yell("[Admin] "+ playerName + ": " + Character.toUpperCase(text.charAt(0)) + text.substring(1)); }else if(playerRights==3){ yell("[Owner] "+ playerName + ": " + Character.toUpperCase(text.charAt(0)) + text.substring(1)); } }
Should work.