Theway2cool1 Look at it closely: if(this.vanishedPlayers.contains(player.getName())) { this.vanishedPlayers.remove(player.getName()); vanished =...
Why is your player p = null? Shouldn't it be Player p = event.getPlayer() ? At least you seem to try to convert that null reference to a...
Show us your onCommand block then.
Please read the basic plugin tutorial. Everything you ask for is explained there (and in some sub-pages)....
I guess this is because it is so simple. You could just google how to use mysql in java as well. Even advanced sql scripting is simple to learn...
I would try using an EntityDamageByEntityEvent http://jd.bukkit.org/apidocs/org/bukkit/event/entity/EntityDamageByEntityEvent.html make sure that...
Listen for an BlockPlaceEvent, check if the block the player tries to place is in your config (you might want to convert your block list to a more...
This. That is what I was taking about when I wrote and I was assuming that you know how to do simple type conversion. After that you need to...
I guess you could also get the player's (using Player.getLocation()) and the block's Location and use the Location class's distance method. Like...
Okay I looked at it and this works for me: @EventHandler public void onPlayerInteractEvent(PlayerInteractEvent evt) {...
Englad So you basically want to add a cooldown to using enderpearls? I would recommend you using a HashMap to store the Player's name along with...
Okay because you commented that you removed it at line 39. I will look into this code in a few minutes.
You removed the wrong one? You should not remove the one at the end but the one in line 26. Sure you did that? Because your comment is at the...
Remove it, as it doesn't make sense. You might have another error, though. When you remove it, what happens and what should happen?
Turtlegasm Like Njol said I wanted you to remove line 26 in your posted code. Because it sets the cooldown right before you check it. Because of...
xNaXDy Probably a bug in the current version(s): https://bukkit.atlassian.net/browse/BUKKIT-2199 But I remember that beeing an issue back when I...
COOLDOWN.put(p.getName(), System.currentTimeMillis()); if (p.hasPermission("cheese.hoe")&& COOLDOWN.containsKey(p.getName())){ long diff =...
The code after: if (args.length == 1) {... only gets executed when only one argument is passed but you actually need two. So change it to if...
Umm remove the int Ticks from the signature and read it from args[1] instead. Check if it is a valid number and multiply it with 20 to get the...
You're welcome. It's often because of those little mistakes nobody looks for lol. And yes you have to pass a key. That is why I asked you to show...
Separate names with a comma.