Been here at Bukkit for over 2 years now, and I have loved every bit of it.
Thanks to everyone that has made it such a great experience to be...
Or instead of looping through all the offline players you could just use:
This is why it isn't default.
Sorry about the late reply.
Can you paste your CustomEntitySkeleton class.
It's the constructor from the tutorial.. I just copied and pasted it here.
Missing the constructor
private CustomEntityType(String name, int id, EntityType entityType, Class<? extends EntityInsentient>...
Your not even listening to me now and that is clearly evident. I have told you the line number in the code you have posted on what...
Your still casting the player to the sender without checking first on line 3. This will throw a ClassCastException is the sender...
Yes that is the check you need to-do before casting the Player to the sender.
I really don't think you need an example as you have done an instance of check further down in your code. But here you go anyway....
Separate names with a comma.