mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Bad Design Removal WIP Part 3
This commit is contained in:
parent
87af2419a3
commit
225045b49f
@ -11,10 +11,8 @@ import org.bukkit.entity.Player;
|
|||||||
|
|
||||||
public class AddlevelsCommand extends ExperienceCommand {
|
public class AddlevelsCommand extends ExperienceCommand {
|
||||||
|
|
||||||
private mcMMO pluginRef;
|
|
||||||
|
|
||||||
public AddlevelsCommand(mcMMO pluginRef) {
|
public AddlevelsCommand(mcMMO pluginRef) {
|
||||||
this.pluginRef = pluginRef;
|
super(pluginRef);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -20,13 +20,13 @@ import java.util.UUID;
|
|||||||
|
|
||||||
public abstract class ExperienceCommand implements TabExecutor {
|
public abstract class ExperienceCommand implements TabExecutor {
|
||||||
|
|
||||||
private mcMMO pluginRef;
|
protected mcMMO pluginRef;
|
||||||
|
|
||||||
public ExperienceCommand(mcMMO pluginRef) {
|
public ExperienceCommand(mcMMO pluginRef) {
|
||||||
this.pluginRef = 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) {
|
if (skill == null) {
|
||||||
sender.sendMessage(pluginRef.getLocaleManager().getString("Commands.addlevels.AwardAll.2", playerName));
|
sender.sendMessage(pluginRef.getLocaleManager().getString("Commands.addlevels.AwardAll.2", playerName));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user