There is a event named EntityTargetEvent that will get called if a orb is flying to a player. I have tested it, the animation still exists, if I...
Your problem is that character: | . Thats the character for logical operator in a regular expression. Replace that character by a other one, example...
You could use a hashmap, use as key the location and as value a class / the playername. Google for hashmap, it's easy to use.
for (String playerName : list) { Player player = Bukkit.getPlayer(playerName); if (player != null) { player.teleport(...); }...
You say it work sometimes? Do you get an error in the console? Because I see you are not null checking the item in the hand of the player, that can...
The clicked block can be null and the item in the hand of the player can be null. Make a null check for them.
Did you tried that? event.getDrops().clear();
Make a HashMap use as key the player name and as value a own class where you store all the informations over the player.
You are casting somewhere the damager directly into a projectile before you are checking it.
Take a look at this page: http://dev.bukkit.org/server-mods/tag/ Good luck
With that way you are using you get the ascii number for the character. If you want the number, you need to convert it. int chickens =...
Where are you initializing that? Looks like that this is null: FileConfiguration config; And by the next two lines of config.set there you using the...
Sorry was away, now I see you forgot to register event, sorry... Please add this line in your onEnable()-method:...
The event itself has a method named setVelocity(..);. Did you try that? e.setVelocity(v); Sorry can't test that now, have only a weak notebook here...
Remove this line: Player player = (Player) e; or change it to: Player player = e.getPlayer();
@EventHandler public void onPlayerJoin(PlayerJoinEvent event) { Player player = event.getPlayer(); if (!player.hasPlayedBefore()) { // only...
You could use the PlayerJoinEvent and If you want that only a player who is new use the method hasPlayedBefore()
e.getClickedBlock() == Block.DIRT) here your are comparing a block with a material, that can't work. Use: (e.getClickedBlock() != null &&...
A array starts a index 0, change args[1] to args[0].
ProjectileHitEvent
Separate names with a comma.