From 394ddd4e5114b67632be2a0fdbbaf7fd2c96ba7b Mon Sep 17 00:00:00 2001 From: Bill Tarbell Date: Mon, 30 Jul 2012 00:02:41 -0400 Subject: [PATCH] copy paste error. --- src/main/java/com/gmail/nossr50/commands/mc/MccCommand.java | 5 +++-- src/main/java/com/gmail/nossr50/mcMMO.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/mc/MccCommand.java b/src/main/java/com/gmail/nossr50/commands/mc/MccCommand.java index 1d12d9389..29cea1f9c 100644 --- a/src/main/java/com/gmail/nossr50/commands/mc/MccCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/mc/MccCommand.java @@ -7,6 +7,7 @@ import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import com.gmail.nossr50.commands.CommandHelper; +import com.gmail.nossr50.config.Config; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.util.Permissions; @@ -44,8 +45,8 @@ public class MccCommand implements CommandExecutor { player.sendMessage("/mcstats " + LocaleLoader.getString("Commands.Stats")); player.sendMessage("/mctop " + LocaleLoader.getString("Commands.Leaderboards")); - if (Permissions.getInstance().skillReset(player)) { - player.sendMessage("/skillreset " + LocaleLoader.getString("Commands.ToggleAbility")); + if (Config.getInstance().getCommandSkillResetEnabled() && Permissions.getInstance().skillReset(player)) { + player.sendMessage("/skillreset " + LocaleLoader.getString("Commands.Reset")); } if (Permissions.getInstance().mcAbility(player)) { diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index cc5aeda43..3e8ead029 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -366,7 +366,7 @@ public class mcMMO extends JavaPlugin { getCommand("mcstats").setExecutor(new McstatsCommand()); } - if (configInstance.getCommandMCStatsEnabled()) { + if (configInstance.getCommandSkillResetEnabled()) { getCommand("skillreset").setExecutor(new SkillResetCommand()); }