From 225045b49fad5e3f0d2093b555f6a2799d2ca6ac Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sun, 30 Jun 2019 12:10:54 -0700 Subject: [PATCH] Bad Design Removal WIP Part 3 --- .../gmail/nossr50/commands/experience/AddlevelsCommand.java | 4 +--- .../gmail/nossr50/commands/experience/ExperienceCommand.java | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) 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 {