final int id = 57;
final int num = 5000000;
final Collection<L2PcInstance> players = L2World.getInstance().getAllPlayers();
final HashSet<Object> seen = new HashSet<>();
players.removeIf(e -> !seen.add(e.getClient().getConnection().getInetAddress().getHostAddress()));
players.forEach(player -> player.addItem("Admin-Reward", id, num, null, true));
activeChar.sendMessage(String.format("Mass-created items in the inventory of %s player(s)",players.size()));
LOGGER.info(Stri
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.