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()));
CommandHandler.sendMessage(player,String.format("Kicking player [%s:%s]",target,targetPlayer.getAccount().getUsername()));
targetPlayer.getSession().close();
}
...
...
@@ -259,12 +252,12 @@ public final class ServerCommands {