package com.techcavern.wavetact.consoleCommands.utils;
import com.techcavern.wavetact.annot.ConCMD;
import com.techcavern.wavetact.objects.CommandIO;
import com.techcavern.wavetact.objects.ConsoleCommand;
import com.techcavern.wavetact.utils.GeneralUtils;
import com.techcavern.wavetact.utils.Registry;
@ConCMD
public class Quit extends ConsoleCommand {
public Quit() {
super(GeneralUtils.toArray("quit exit"), "quit", "exits from console");
}
@Override
public void onCommand(String command, String[] args, CommandIO commandIO) throws Exception {
Registry.consoleServer.keepConnectionRunning = false;
commandIO.getPrintStream().println("Bye!");
}
}