A try/catch tblock is used to "catch" errors that could be thrown in some methods you're calling. Catching the exception gives you the chance to...
There is nothing wrong with doing that in the right cases. It's all about the ultimate goal of you code, and the best way of implementing it. With...
This is probably a very stupid question, but how would I go about cloning the repository and having a copy in Eclipse? I sort of got it working...
If you need me to do something just let me know. I'll be working on some school work for the next few week so I won't be able to actively...
My username is DavidSkrundz
You add the "public" modifyer to the methods that are part of the API, then in the other other plugin would import your plugin and use those...
I am interested in this project. Although I've been programming for several years now, I am still fairly new to Java and Bukkit development, and...
I'm working on a world generator, and in my block populator I need to get every chest in the chunk and add items to its inventory. When I use...
Thanks for the help :) Would I do the same for block populator?
Great tutorial! I'm currently working on a generator, but no matter what seed I use I always get the exact same world. I've spent a little over 2...
The problem is in your onEnable() method not in the listener.
You want to be calculating the vectors with the projectile's position at 0,0,0 because then you set its direction to the relative position of your...
I'm half way through the process of rewriting my old economy plugin. However the only reason I'm making my own economy plugin is because the...
Do your checking to see if they used the right command, then use Bukkit.dispatchCommand(sender, "help test"); return true;
Isn't 3GHz equal to 3000000000 cycles/second? You have 3Hz, 3.000KHz, 3.000000MHz, then 3.000000000GHz.
The problem is you're calculating your delta using the player location before and after the move evevnt. Since the server runs at 20 ticks per...
Because you are checking if it equals the radius. So if the player moves 3 blocks, and your radius is 2, it won't trigger. You want to use...
You calculate the x and z distance that the player has moved from the center using double deltaX = playerLocation.getX() - center.getX(); double...
Start by getting the list from the yaml, then add the player to that list, then save it to the file.
Looking at your error log, your error isn't even in the code you pasted... It is found in your load() function on line 51 in Spamicide.java.
Separate names with a comma.