Also, you can round the number using simple math in Java. To round out by 3 decimals, this should do it. double kd = Math.round(someDouble * 1000)...
Are there any error messages?
Perhaps it wont save the file if there is no content within the file?
Did you register the listener in your onEnable portion of the plugin?
Could you post the entire class file? or if you don't want to share it you can PM it to me.
When you create a plugin that edits a player's name tag. It creates incompatibilities with other plugins. I was in the same boat you are in. I...
Glad I could help :3
if(event.getEntity() instanceof Snowball) { Snowball snow = (Snowball) event.getEntity(); if(snow.getShooter() instanceof Player) {...
Didn't even catch that! Good find. You could also use equalsIgnorCase(); too.
Check that your plugin is being enabled successfully when the server starts.
You have to use the ProjectileLaunchEvent. From that event, do if(event.getEntity() instanceof Snowball) { //Execute code here for snowball...
Not entirely sure if this is possible. You might be able to find an entity and see how long its been alive, but I'm not sure if ticksLived gets...
Have you included the @EventHandler and registered it through the plugin manager?
Hello! :D I believe there are already several plugins on BukkitDev that do things like this. This seems to do what you want....
Thank you! :3
Separate names with a comma.