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
Wow! :3 Thanks for using it in such a useful suite of tools :3 Makes me feel like I made something 100% useful! lol
Hello everyone! :D Today I have something very special for you all. I have developed a set of classes in PHP that allow you to fetch a players...
It took you 10 minutes to do 10%? Thats like, an 1 hour and 15 minutes until you would release it at 75%, and 1 hour and 40 minutes until you...
You DO realize that most people could have those done in less than 10 minutes instead of waiting for you to complete them and upload them right?...
What are the advantages of using byte arrays instead of Strings?
Separate names with a comma.