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...
The only time it will do that is if you changed your Bukkit properties to allow offline mode clients.
Type /reload in game and see if that does anything?
Try adding a small delay check after PlayerQuitEvent.
Bukkit.getServer().getScheduler().runTaskLater(plugin, new Runnable()
public void run()...
If it's in another folder of your plugin folder you can do this.
for (File file : new File(plugin.getDataFolder().getAbsolutePath() +...
Sorry your question is pretty broad, this is the best I could do.
I couldn't be bothered to do armour but I'm guessing this is how items are done. :)
private HashMap<String, List<ItemStack>> items = new...
This has been asked heaps of times, you need to restart your Bukkit server completely.
Separate names with a comma.