Quick Help

Status
This thread has been locked.

j0navor

Feedback score
0
Posts
147
Reactions
46
Resources
0
Ok so i have recently started using IntelliJ and i am loving it, i have one problem though, when i use 'getOnlinePlayers' i don't know how to fix the error i get. The code works fine in Eclipse but not in IntelliJ please help.
Line Of Code:

IntelliJ:
int j = (arrayOfPlayer = Bukkit.getServer().getOnlinePlayers()).length;


Eclipse:
int j = (arrayOfPlayer = Bukkit.getServer().getOnlinePlayers()).length;

In eclipse theres a line going through the getOnlinePlayers

I also added this in eclipse

@SuppressWarnings("deprecation")

Doesn't work in IntelliJ though.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

j0navor

Feedback score
0
Posts
147
Reactions
46
Resources
0
Thought so, protocol hack? 1.7.10 doesn't allow you to do that as far, I've had problems with it in the past. I would recommend just using 1.8, it will work on a 1.7 server as long as you don't import anything with 1.8 in the package name.
Ok thanks, it's weird though i use the same spigot version on eclipse and it works?
 
Status
This thread has been locked.
Top