@KingPieter Make a method for your sheduler and call it only one time, and not every time a player join the game
Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable()
I will skip the part where you cast the...
Edit: nvm, it's fixed. i guess my version was too old. I downloaded the last build and it works.
@timtower When i created the server ?
Yep, it was with 1.8
@timtower The server is launched with java 1.8
@timtower buildtools, you're talking about eclipse ?
I compile my plugins with java 1.8.
@timtower Actually i have java 8 installed yea on the machine.
>[email protected]:/home/test# java -Xms1024M -Xmx1024M -jar craftbukkit.jar
Loading libraries, please wait...
[10:02:53 INFO]: Starting minecraft...
Hello, this must not be the first time you see this, but after looking on many threads, i didnt found a good answer. So i come back with this....
@SuperboyDev why not playing with the GameMode ?
I guess if they are spectator, they got the gamemode spectator
So loops players in the world,...
A block cannot be null.
Block iron_ore = event.getBlock();
Block diamond = event.getBlock();
this will not work, cuz you teleport the player where he's standing, this is useless.
You have to compare with the previous location. So...
your description is weird.
What is exactly your problem ?
Post the full method.
You compare two itemstack with equals, so the itemstack must be the same, the durability also.
We don"t see the cause in your stack trace, it's not the full error..
#Bukkit.getPlayer() return null if the player is offline....
Separate names with a comma.