feat(cmd): remove from main cmd

This commit is contained in:
aroooo 2022-11-04 16:53:09 +01:00
parent c5e05737eb
commit b5ba5441cf

View file

@ -3,7 +3,6 @@ package net.artelnatif.nicko.command;
import net.artelnatif.nicko.NickoBukkit; import net.artelnatif.nicko.NickoBukkit;
import net.artelnatif.nicko.command.sub.NickoCheckSubCmd; import net.artelnatif.nicko.command.sub.NickoCheckSubCmd;
import net.artelnatif.nicko.command.sub.NickoDebugSubCmd; import net.artelnatif.nicko.command.sub.NickoDebugSubCmd;
import net.artelnatif.nicko.command.sub.NickoDisguiseSubCmd;
import net.artelnatif.nicko.command.sub.NickoGUISubCmd; import net.artelnatif.nicko.command.sub.NickoGUISubCmd;
import net.artelnatif.nicko.gui.MainGUI; import net.artelnatif.nicko.gui.MainGUI;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
@ -33,7 +32,6 @@ public class NickoCommand implements CommandExecutor {
if (sender instanceof Player player) { if (sender instanceof Player player) {
if (args.length >= 1) { if (args.length >= 1) {
switch (args[0]) { switch (args[0]) {
case "disguise" -> new NickoDisguiseSubCmd(this).execute(sender);
case "debug" -> new NickoDebugSubCmd(this).execute(sender, args); case "debug" -> new NickoDebugSubCmd(this).execute(sender, args);
case "check" -> new NickoCheckSubCmd(this).execute(player, args); case "check" -> new NickoCheckSubCmd(this).execute(player, args);
case "gui" -> new NickoGUISubCmd(this).execute(sender, args); case "gui" -> new NickoGUISubCmd(this).execute(sender, args);