Add checks for loaded/unloaded profiles in commands

This commit is contained in:
TfT_02
2014-08-19 22:23:19 -06:00
parent 1503e58d11
commit a3943aab24
14 changed files with 83 additions and 1 deletions

View File

@@ -28,6 +28,10 @@ public abstract class ToggleCommand implements TabExecutor {
return true;
}
if (!CommandUtils.hasPlayerDataKey(sender)) {
return true;
}
applyCommandAction(UserManager.getPlayer(sender.getName()));
return true;