2023-05-25 19:20:03 +02:00
|
|
|
package com.craftaro.ultimatestacker.commands;
|
2020-06-03 15:44:12 +02:00
|
|
|
|
2023-05-30 11:21:46 +02:00
|
|
|
import com.craftaro.ultimatestacker.UltimateStacker;
|
2023-06-11 13:14:56 +02:00
|
|
|
import com.craftaro.core.commands.AbstractCommand;
|
|
|
|
import com.craftaro.core.lootables.gui.GuiEditor;
|
2020-06-03 15:44:12 +02:00
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class CommandLootables extends AbstractCommand {
|
|
|
|
|
2020-09-01 20:30:08 +02:00
|
|
|
private final UltimateStacker plugin;
|
2020-06-03 15:44:12 +02:00
|
|
|
|
2020-09-01 20:30:08 +02:00
|
|
|
public CommandLootables(UltimateStacker plugin) {
|
|
|
|
super(CommandType.PLAYER_ONLY, "lootables");
|
|
|
|
this.plugin = plugin;
|
2020-06-03 15:44:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected ReturnType runCommand(CommandSender sender, String... args) {
|
|
|
|
Player p = (Player) sender;
|
2020-09-01 20:30:08 +02:00
|
|
|
plugin.getGuiManager().showGUI(p, new GuiEditor(plugin.getLootablesManager().getLootManager()));
|
2020-06-03 15:44:12 +02:00
|
|
|
return ReturnType.SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected List<String> onTab(CommandSender sender, String... args) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getPermissionNode() {
|
|
|
|
return "ultimatestacker.admin";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getSyntax() {
|
2020-06-28 04:12:13 +02:00
|
|
|
return "lootables";
|
2020-06-03 15:44:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getDescription() {
|
|
|
|
return "Modify the drop tables.";
|
|
|
|
}
|
|
|
|
}
|