It looks like
Hasn't been initialised.
2L is only 2 ticks.
Every second is 20 ticks so I'd suggest making the person wait 5 seconds before teleport. Which is 5 * 20
Yeah that would be the best way. I guess I should save the block states and reset them when server closes.
So I'm working on a plugin which will spawn helicopter crash sites, like DayZ does here http://dayz.gamepedia.com/Helicopter_Crash_Sites...
This may help, please report back!
I don't know about when they'll be removed but, at this moment in time, there is no other way to do this.
I see your problem, here's what I've done, taken out of my own plugin! :)
org.bukkit.material.Chest chest = new...
My apologies. I thought it didn't belong because of
I worked on this for my server and I store the UUID's with dashes, so when I had to grab the UUID from Minecraft's API it returned it...
Oh, now that I read the main post it could be interpreted as either one. Yours is probably more right though. :P
ev.getItem() returns the item in the players hand.
ev.getClickedBlock() is what you're looking for.
Store their UUID's in the map instead.
A tip in future is to use player.getUniqueId().toString(); instead of player.getName(); as there is a new UUID format for Minecraft 1.9 which will...
Separate names with a comma.