Browse Source

Bad Design Removal WIP Part 3

nossr50 6 years ago
parent
commit
225045b49f

+ 1 - 3
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

+ 2 - 2
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 {