Resolving issues #243, #241, and #234.

This commit is contained in:
Glitchfinder
2012-10-30 17:59:58 -07:00
parent 9354831729
commit 70231b6ae0
10 changed files with 67 additions and 0 deletions

View File

@ -72,6 +72,11 @@ public class AddlevelsCommand implements CommandExecutor{
String playerName = modifiedPlayer.getName();
profile = Users.getProfile(modifiedPlayer);
if (profile == null) {
sender.sendMessage(LocaleLoader.getString("Commands.DoesNotExist"));
return true;
}
if (!profile.isLoaded()) {
sender.sendMessage(LocaleLoader.getString("Commands.DoesNotExist"));
return true;