package com.craftaro.ultimatekits.commands; import com.craftaro.core.commands.AbstractCommand; import com.craftaro.core.configuration.editor.PluginConfigGui; import com.craftaro.core.gui.GuiManager; import com.craftaro.ultimatekits.UltimateKits; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import java.util.ArrayList; import java.util.List; public class CommandSettings extends AbstractCommand { private final UltimateKits plugin; private final GuiManager guiManager; public CommandSettings(UltimateKits plugin, GuiManager guiManager) { super(CommandType.PLAYER_ONLY, "settings"); this.plugin = plugin; this.guiManager = guiManager; } @Override protected ReturnType runCommand(CommandSender sender, String... args) { this.guiManager.showGUI((Player) sender, new PluginConfigGui(this.plugin)); return ReturnType.SUCCESS; } @Override protected List onTab(CommandSender sender, String... args) { return new ArrayList<>(); } @Override public String getPermissionNode() { return "ultimatekits.admin"; } @Override public String getSyntax() { return "settings"; } @Override public String getDescription() { return "Edit the UltimateKits Settings."; } }