You could, for example, do:
Code: Select all
"SELECT charId FROM characters WHERE `account_name`= " + _user;
Code: Select all
L2World w = L2World.getInstance();L2PcInstance tmp;while (rset.next()){ tmp = w.getPlayer(rset.getInt("charId")); if ((tmp != null) && !tmp.getClient().isDetached()) { tmp.logout(); }}