Fixed major bug in adminchat, now it should work properly!

This commit is contained in:
nossr50 2010-10-13 01:21:54 -07:00
parent 842001f8ac
commit 5c545f2b4f

View File

@ -21,11 +21,11 @@ import java.util.logging.Level; //Need this to use LEVEL.INFO etc
for (Player p : etc.getServer().getPlayerList()) {
String blaa = "";
if (p != null) {
if (player.isAdmin() || player.canUseCommand("/adminchat")) {
if (p.isAdmin() || (p.canUseCommand("/adminchat"))) {
for ( int x = 1; x< message.length(); x++) {
blaa+=message.charAt(x);
}
if (p.isAdmin() || player.canUseCommand("/adminchat")){
if (p.isAdmin() || (p.canUseCommand("/adminchat"))){
if (p != null) {
p.sendMessage(adminchat+blaa);
}