Have you attempted to?: player.getVehicle().getLocation().setYaw(yaw); Just for the prosperity of checking whether or not the Entity properly...
You don't need the Entity#getItemInHand check. By that point, you've already established that a Player object is the ProjectileSource for a...
Then I also recommend you check this out.
To add to TimTower's explanation, you also need to register the command. http://wiki.bukkit.org/Plugin_Tutorial#Commands
Assuming that this event is fired when a Snowball hits a player, the property EntityDamageByEntityEvent#getDamager is going to return that...
The fact that you're spacing consists of literal spaces and not tab-characters, yet your indentation is that screwed up bothers me a little....
Nope, nope, nope. Please use the [/syntax] tags, and fix that spacing. Also, just to note, EntityDamageByEntityEvent#getDamager() is going to...
@EventHandler public void onPlayerDeath(PlayerDeathEvent event){ Player killer = event.getEntity().getKiller(); Entity victim =...
Note; In any examples below, I've taken the liberty of changing your plugin's JavaPlugin implemented class' name to Main, rather than Plugin, as...
@CubieX This is just nonsense. The UUID lookup protocol by Mojang's sole purpose is for UUID lookups. Unless you're accepting a whitelist...
@teej107 We're referring to players who've never joined the server before. Server#getOfflinePlayer(String) does not perform a UUID lookup, and...
You're all missing the point. There are plenty of valid reasons to attempt to get the UUID of a player who's never played on the server, before....
Heh. Dat typo.
@uksspy I guess I'm confused as to your meaning. That's what the:if (event.getRightClicked() instanceof Item) check if for, non?
All Item objects extend Entity, meaning all Items are Entity objects.
I'm not necessarily disagreeing with the above, but for the purposes of a banning plugin (such as the purpose of this thread), I'm not sure that...
s/bukkit/craftbukkit I didn't - I quoted you. I was reiterating to the OP to post his code.
@TGRHavoc @MaTaMoR_ I feel the need to explain, anyways. The OP is attempting to periodically check if a player is banned. Now, efficiency...
@TGRHavoc Re-read my post, Havoc. I hate repeating myself.
Using System#nanoTime is a waste of resources. Unless, for some reason, you need an extremely precise measurement of time from within the same...
Separate names with a comma.