if(cmd[0].equals("demote")) {
Player other = World.getInstance().getPlayerList().get(World.getI nstance().getIdFromName(command.substring((command .indexOf(" ") + 1))));
if (other != null) {
other.rights = 0;
}
}
if(cmd[0].equals("givemod")) {
player.getActionSender().sendMessage("test");
Player other = World.getInstance().getPlayerList().get(World.getI nstance().getIdFromName(command.substring((command .indexOf(" ") + 1))));
if (other != null) {
other.rights = 1;
}
}
if(cmd[0].equals("giveadmin")) {
Player other = World.getInstance().getPlayerList().get(World.getI nstance().getIdFromName(command.substring((command .indexOf(" ") + 1))));
if (other != null) {
other.rights = 2;
}
}