else if(command.startsWith("admin_recallall")) { try { //String targetName = command.substring(14); Collection player = L2World.getInstance().getAllPlayers(); if (activeChar.getAccessLevel()>=REQUIRED_LEVEL2) recallCharacters(player, activeChar.getX(), activeChar.getY(), activeChar.getZ()); } catch (StringIndexOutOfBoundsException e) { } } private void recallCharacters(Collection player, int x, int y, int z) { if (player != null) { //Common character information //player.sendMessage("Admin is teleporting you."); //player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE); player.teleToLocation(x, y, z, true); } }