diff --git a/src/main/java/com/gmail/nossr50/commands/experience/AddlevelsCommand.java b/src/main/java/com/gmail/nossr50/commands/experience/AddlevelsCommand.java index 2afc1afc7..6fc24ceac 100644 --- a/src/main/java/com/gmail/nossr50/commands/experience/AddlevelsCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/experience/AddlevelsCommand.java @@ -11,10 +11,8 @@ import org.bukkit.entity.Player; public class AddlevelsCommand extends ExperienceCommand { - private mcMMO pluginRef; - public AddlevelsCommand(mcMMO pluginRef) { - this.pluginRef = pluginRef; + super(pluginRef); } @Override diff --git a/src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java b/src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java index be6ed72fe..b33149310 100644 --- a/src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java @@ -20,13 +20,13 @@ import java.util.UUID; public abstract class ExperienceCommand implements TabExecutor { - private mcMMO pluginRef; + protected mcMMO pluginRef; public ExperienceCommand(mcMMO pluginRef) { this.pluginRef = pluginRef; } - protected static void handleSenderMessage(CommandSender sender, String playerName, PrimarySkillType skill) { + protected void handleSenderMessage(CommandSender sender, String playerName, PrimarySkillType skill) { if (skill == null) { sender.sendMessage(pluginRef.getLocaleManager().getString("Commands.addlevels.AwardAll.2", playerName)); } else {