you can just replace a string with another string. The type of (Damageable) p).getHealth() is double.
I believe you put your 4th listener into your third ones method.
Edit: Ninja'd by CraftCreeper ;)
Maybe because nobody is understanding what you are trying to do??
Your description makes no sense at all.
Please give a better explanation and...
In the new bukkit versions "Bukkit.getOnlinePlayers()" returns a collection, no longer an array.
Also for the "targetP" method i would rather do...
Yep you can stop block breaking by cancelling the interact event
You could also check this yourself by cancelling all interact events...
Here you can have a look at all the mc-server files from version 1.7.5 I...
This is a screenshot from the EntityFishingHook class and since the field "hooked" is just an Entity you should be able to attach...
The file exists?
Else file.createNewFile(); before that make sure the folder exists file.getParentFile().mkdirs();
Java is CaSe-SeNsItIvE!
The method OnEnable() has to be onEnable()!
It works like this:
Client sends ping to server.
Server responds with motd and favicon.
Server sends a ping response after that.
'plugin' is not initialized in your listener class. Therefore its null.
For 1.7 you spawn a horse with an extremely high age and make it ride an witherskull. Then just give it a custom name and set custom...
Also make sure e.getRightClicked is an instance of Villager and not a Zombie or so.
But for this code you don't even have to cast it to Villager....
PlayerChatEvent is deprecated, use AsyncPlayerChatEvent instead.
You are checking whether the lore is null after using 'contains' on it.
Check first 'ItemStack#hasItemMeta"
There's a class called "TinyProtocol" by aadnk. Search for it on google. Its like protocollib in mini
What about substracting the direction (p.getLocation().getDirection())
from the player location?
You're testing for WALL_SIGN both times. But you have to test for WALL_SIGN and SIGN_POST.
Also do you get an error? You have to cast...
But why is he getting an 'Error' when just comparing to objects?
Separate names with a comma.