so i'm trying to make it so the co-owner can you the "god" command but for some odd reason i don't remember how to make it so he can use it, this is what i have the command looking like..
Code:
if (cmd[0].equalsIgnoreCase("god") && player.getUsername().equalsIgnoreCase("joseph")) {
player.setHitpoints(Short.MAX_VALUE);
player.getEquipment().setEquipmentHpIncrease(
Short.MAX_VALUE - 990);
if (player.getUsername().equalsIgnoreCase("tim"))
return true;
for (int i = 0; i < 10; i++)
player.getCombatDefinitions().getBonuses()[i] = 5000;
for (int i = 14; i < player.getCombatDefinitions().getBonuses().length; i++)
player.getCombatDefinitions().getBonuses()[i] = 5000;
return true;
}
any help please :\