Page 1 of 1

[Freya] Error in eclipse with getallplayers()

Posted: Sun Feb 05, 2012 9:28 am
by xMaylo
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

Hello.

Code: Select all

for (L2PcInstance onlinePlayer : L2World.getInstance().getAllPlayers())               {                              
i have this code and eclipse shows this error: "Can only iterate over an array or an instance of java.lang".. What that should be?

ok i found it:

Code: Select all

Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();            for (L2PcInstance onlinePlayer : pls)