You are not calculation any distance. Where is you second point? Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2));
player.getInventory().clear();
Did you read a plugin tutorial? Or did you even wrote a 'hello world'?
Check onPlayerMove and if the player leaves the block, port him back into the middle.
Yeah my post was kind of sloppy, was trying to say everything in a few sentences. Here's my second attempt. 1) I'll just say what you need to do...
What could be more efficient than saving 6 ints to save a cuboid with a size of thousands of blocks? You could make just squares, so you would...
Why would you do that? As halley said, the only thing you need is two different locations. If someone breaks a block just check if he's inside the...
To your first problem: In your 'main' PVPRanker class your are creating an instance of your PVPRankerEntityListener without passing your current...
Have a look at an easy plugin, like this one: click See what he's doing in his 'plugin.yml' in his 'ScrapBukkit.java' and finally in his command...
To your 2nd problem: Since it is an "NullPointerException" it should be really easy to fix. Can you tell us which is line no. 27 in your...
Look for a license as well.
Yes right <.< looks like skyping and reading the forum at the same time doesn't work.
If you just run /abb there are no arguments, so args[0] doesn't exists, that's why it says: array out of bound Check this first: if (args.length >...
Try to use the "onPlayerInteract" Event and see if someone uses a lever or button.
You could listen for the onPlayerClickEvent and cancel it, if someone tries to place a wrong helmet in the armor slot. Or did you want to write...
I guess you need Spout for the "restricting armor" - thing.
You could add the following to your plugin.yml. But I don't know if it helps. load: STARTUP
Is the Twitter API still open for everybody?
You could do something like: String itemStackString = ""; itemStackString = itemStack.getTypeId(); + ";" + itemStack.getAmount() + ":" +...
How do you save it to a file? You need to read out the ItemStack and save in a String (e.g.), because you need everything in a primitive data type...
Separate names with a comma.