From fd821139bdfe9bf5ffcc8d1af2a45428a87bffbb Mon Sep 17 00:00:00 2001 From: "U-YUE\\Sean" Date: Wed, 20 Feb 2013 09:58:53 -0800 Subject: [PATCH] Fixing an NPE related to the skillreset command. --- .../com/gmail/nossr50/commands/admin/SkillresetCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/admin/SkillresetCommand.java b/src/main/java/com/gmail/nossr50/commands/admin/SkillresetCommand.java index 4ba87e25e..901de47da 100644 --- a/src/main/java/com/gmail/nossr50/commands/admin/SkillresetCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/admin/SkillresetCommand.java @@ -137,7 +137,7 @@ public class SkillresetCommand implements CommandExecutor { continue; } - if (!Permissions.skillresetOthers(sender, skill)) { + if (!Permissions.skillresetOthers(sender, skillType)) { sender.sendMessage(command.getPermissionMessage()); continue; }