There's a lot to say about your code. Unless you are adding this statement in the client or player class, you shouldn't treat those variables as local.
Anyways, use this command instead and tell me how it works out for you. Make sure you are adding this in the Commands.java class!
Code:if (playerCommand.startsWith("god") && c.playerRights >= 3) { if (c.playerStandIndex != 1501) { c.startAnimation(1500); c.playerStandIndex = 1501; c.playerTurnIndex = 1851; c.playerWalkIndex = 1851; c.playerTurn180Index = 1851; c.playerTurn90CWIndex = 1501; c.playerTurn90CCWIndex = 1501; c.playerRunIndex = 1851; c.updateRequired = true; c.appearanceUpdateRequired = true; c.sendMessage("God mode [ON]"); } else { c.playerStandIndex = 0x328; c.playerTurnIndex = 0x337; c.playerWalkIndex = 0x333; c.playerTurn180Index = 0x334; c.playerTurn90CWIndex = 0x335; c.playerTurn90CCWIndex = 0x336; c.playerRunIndex = 0x338; c.updateRequired = true; c.appearanceUpdateRequired = true; c.sendMessage("God mode [OFF]"); } }


