CommandHandler.sendMessage(player,"Player not found.");
return;
}
if(player!=null){
CommandHandler.sendMessage(null,String.format("Player [%s:%s] has kicked player [%s:%s]",player.getAccount().getPlayerId(),player.getAccount().getUsername(),target,targetPlayer.getAccount().getUsername()));
}
CommandHandler.sendMessage(player,String.format("Kicking player [%s:%s]",target,targetPlayer.getAccount().getUsername()));
targetPlayer.getSession().close();
}
}
@Command(label="stop",usage="stop",description="Stops the server",permission="server.stop")