From 37115d238b79e394420917decd108bbc464240b6 Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Thu, 27 Dec 2012 12:35:30 -0800 Subject: [PATCH] Fixing broken skillreset command. --- .../com/gmail/nossr50/commands/general/SkillResetCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/general/SkillResetCommand.java b/src/main/java/com/gmail/nossr50/commands/general/SkillResetCommand.java index 9e81f6755..9b1e56238 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/SkillResetCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/SkillResetCommand.java @@ -27,7 +27,7 @@ public class SkillResetCommand implements CommandExecutor { SkillType skillType = null; //simple initialization //make sure there's only one argument. output at least some kind of error if not - if (args.length != 1 && args[0] != null) { + if (args.length == 0 || (args.length != 1 && args[0] != null)) { sender.sendMessage(LocaleLoader.getString("Commands.Skill.Invalid")); return true; }