From 5b3b9fbc306f00f2adf6cdf51d5e6e405f70fcd6 Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 31 May 2012 14:03:55 -0400 Subject: [PATCH] Tweak the way SkillCommands are constructed. --- .../com/gmail/nossr50/commands/skills/AcrobaticsCommand.java | 4 ++-- src/main/java/com/gmail/nossr50/mcMMO.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/skills/AcrobaticsCommand.java b/src/main/java/com/gmail/nossr50/commands/skills/AcrobaticsCommand.java index 660dbe63d..79d5c805d 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/AcrobaticsCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/skills/AcrobaticsCommand.java @@ -13,8 +13,8 @@ public class AcrobaticsCommand extends SkillCommand { private boolean canRoll; private boolean canGracefulRoll; - public AcrobaticsCommand(SkillType skill) { - super(skill); + public AcrobaticsCommand() { + super(SkillType.ACROBATICS); } @Override diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index 91a339cb9..f051d30cd 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -1,7 +1,6 @@ package com.gmail.nossr50; import com.gmail.nossr50.datatypes.PlayerProfile; -import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.commands.skills.*; import com.gmail.nossr50.commands.spout.*; import com.gmail.nossr50.commands.mc.*; @@ -285,7 +284,7 @@ public class mcMMO extends JavaPlugin { //Register commands //Skills commands - getCommand("acrobatics").setExecutor(new AcrobaticsCommand(SkillType.ACROBATICS)); + getCommand("acrobatics").setExecutor(new AcrobaticsCommand()); getCommand("archery").setExecutor(new ArcheryCommand()); getCommand("axes").setExecutor(new AxesCommand()); getCommand("excavation").setExecutor(new ExcavationCommand());