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()); }