Hey guys. I'm using a Project Insanity based server. I ripped the ::yell command off of my other server (WHICH I DID NOT LEECH)
I can't get it to work. Here's my error (yes I know what it means, I can't figure out a way to fix it though)
Code:
src\server\model\players\packets\Commands.java:410: reached end of file while pa
rsing
}→
^
1 error
Press any key to continue . . .
Here's the part that's messing me up
Code:
}
if (command.startsWith("yell") && playerRights == 1) {
String text = command.substring(5);
yell("@bla@[@whi@Moderator@bla@]@whi@ - "+playerName+"@bla@]: " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}
if (command.startsWith("yell") && donator == 1 && playerRights == 0) {
String text = command.substring(5);
yell("[Donator - "+playerName+"]: " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}
if (command.startsWith("yell") && playerRights == 0) {
String text = command.substring(5);
yell("@blu@[Player - "+playerName+"]: " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}
if (command.startsWith("yell") && playerRights == 2) {
String text = command.substring(5);
yell("@yel@[@blu@Administrator@yel@]@blu@ - "+playerName+"@yel@]@blu@: " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}
if (command.startsWith("yell") && (playerName.equalsIgnoreCase("Maxpk"))) {
String text = command.substring(5);
yell("@yel@[@blu@Head Admin@yel@]@blu@ - "+playerName+"@yel@]@blu@: " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}
if (command.startsWith("yell") && (playerName.equalsIgnoreCase("Ghost"))) {
String text = command.substring(5);
yell("@bla@[@red@Owner@bla@]@red@- "+playerName+"@bla@]@red@: " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}
}