Irrelevant Posted February 28, 2021 Posted February 28, 2021 (edited) hello ..i have a problem . I tried to add the code when admin create mass item only 1window per ip can receive. i add this: Spoiler Collection <L2PcInstance> pls = L2World.getInstance (). getAllPlayers (); for (L2PcInstance p: pls) { final String ip = p.getClient().getConnection().getInetAddress().getHostAddress(); if (ips.contains(ip)) continue; blablabla but it doesnt work :/ any help ? code hasnt errors, just in game doesnt work :/ edit: i use arraylist not hash Edited February 28, 2021 by Irrelevant
0 Irrelevant Posted March 1, 2021 Author Posted March 1, 2021 (edited) 10 minutes ago, Kara said: Ah alright then, i didn't know. For sure you should upgrade to java 8 since scripting engine is still supported and java 8 has some future proof features and it's the current stable java version. I don't see the reason why you stick with Java 7 in 2021. Saying you're lazy and you spend 10 minutes writing in this topic while updating java only take 5. So vouch for java 8 ! i had already updated to java 8 .i just borring to update again( also i believe l2jfrozen db will have lag issues after java8) Edited March 1, 2021 by Irrelevant
Question
Irrelevant
hello ..i have a problem . I tried to add the code when admin create mass item only 1window per ip can receive.
i add this:
Collection <L2PcInstance> pls = L2World.getInstance (). getAllPlayers ();
for (L2PcInstance p: pls)
{
final String ip = p.getClient().getConnection().getInetAddress().getHostAddress();
if (ips.contains(ip))
continue;
blablabla
but it doesnt work :/ any help ?
code hasnt errors, just in game doesnt work :/
edit: i use arraylist not hash
Edited by Irrelevant16 answers to this question
Recommended Posts