[Freya] Error in eclipse with getallplayers()

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
xMaylo
Posts: 5
Joined: Mon Dec 19, 2011 5:01 pm

[Freya] Error in eclipse with getallplayers()

Post 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)
Post Reply