Fix NPE on rules and resetting offline player

This commit is contained in:
gravitylow committed 2014-01-22 16:32:00 -05:00
1 parent 9e24ee6d12
commit c5fbdb2579
4 files changed
+6 -8

No files matched your search

@@ -46,7 +46,7 @@ public class CommandReset extends CommandBase {
user.resetLevel();
XRAY_TRACKER.reset(args[0]);
user.clearMessages();
AntiCheat.getManager().getBackend().resetChatLevel(user.getPlayer());
AntiCheat.getManager().getBackend().resetChatLevel(user);
cs.sendMessage(args[0] + GREEN + " has been reset.");
} else {
cs.sendMessage(RED + "Player: " +args[0] + " not found.");