package command; import server.Client; import server.Server; public class Kick extends Command { @Override public void execute(String[] args, Client caller) { try { Server.getUserByName(args[0]).disconnect(false); } catch (NullPointerException ex) { caller.send("No user called " + args[0] + "!"); } } @Override public String getName() { return "kick"; } @Override public int getMinArgNumber() { return 1; } @Override public String writeDescription() { return "Kicks a user. (/kick )"; } @Override public String getPermission() { return "server.kick"; } }