Can only iterate over an array.... Miss understanding
I found some scripts but i always have problem applying them to my build of server,
I never had any other problems with other custom scripts, just cant get anitdual box work.
Most common to use is /* This program is free software; you can redistribute it and/or modify * it u - Pastebin.com
but when i just paste
L2World.getInstance().getAllPlayers()) - eclipse gives me error on this line (It may sound stupid for some of you java proffesionals, but i actually have no idea what he want from me)
public static void disc(final L2PcInstance player)
player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "SYSTEM", "You cannot play with dualbox."));
public void run()
public static boolean check(L2PcInstance player)
boolean loggedz0r = false;
for (L2PcInstance playerz0r : L2World.getInstance().getAllPlayers())
it say's "Can only iterate over an array or an instance of java.lang.Iterable"
I found some explanations in google, but it's not written in human language I actually couldn't understand what he wants from me.
Any one can suggest fix (Well better be a little explanation)
Re: Can only iterate over an array.... Miss understanding
Post the method signature for getAllPlayers(). What is its return type?