Bad Design Removal WIP Part 3

This commit is contained in:
nossr50 2019-06-30 12:10:54 -07:00
parent 87af2419a3
commit 225045b49f
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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 {