package rosegoldaddons.commands; import net.minecraft.client.Minecraft; import net.minecraft.command.CommandException; import net.minecraft.command.ICommand; import net.minecraft.command.ICommandSender; import net.minecraft.util.BlockPos; import org.jetbrains.annotations.NotNull; import rosegoldaddons.Main; import java.util.ArrayList; import java.util.List; public class LobbySwap implements ICommand { public static boolean swapLobby = false; @Override public String getCommandName() { return "lobbyswap"; } @Override public String getCommandUsage(ICommandSender sender) { return "/" + getCommandName(); } @Override public List getCommandAliases() { return new ArrayList<>(); } @Override public void processCommand(ICommandSender sender, String[] args) throws CommandException { swapLobby = true; Main.mc.thePlayer.sendChatMessage("/sbmenu"); } @Override public boolean canCommandSenderUseCommand(ICommandSender sender) { return true; } @Override public List addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) { return null; } @Override public boolean isUsernameIndex(String[] args, int index) { return false; } @Override public int compareTo(@NotNull ICommand o) { return 0; } }