Eclipse.
@EventHandler public void cancelEmptyInventory(PlayerCommandPreprocessEvent e) { Player p = e.getPlayer();...
For the location you can use: door.getLocation(); This returns the door`s location.
You do not register the events.. Please add the following code. getServer().getPluginManager().registerEvents(this, this); Add that to your...
Turning player visibility off? And what Item to open the GUI?
Use a PlayerInteractEvent, and check if the state of the right-clicked block is a sign. Then check if the first line of the sign says [Kit]. Now...
Look at some basic Java tutorials. Do not put the event in the method. You should not be basing the event off your method. Here is a hint: public...
Also when you are adding the item in the original code, define the itemstack like so: p.getInventory().addItem(new ItemStack(Material.STONE,...
Nope, cut the equipping from the event. Then make a new method like equipArmor(). Paste the code in the method. Call the method equipArmor() in...
1) item.getTypeId() returns item`s id. 2) p.getInventory().addItem(ItemStack is); will add a new item only if the inventory has room. :)
You are not doing anything when you run the command! :P Make a method for equipping the armor! :)
Please use the code tool!
Look at the plugin request forums! That`s the perfect spot for you!
getConfig().set("ExistingPath", null); getConfig().set("YourNewPath", YourValue); This will change it by removing the old one, and setting the...
Yeah, or use the WorldEdit API to store the region, then recover it when you need rollback!
Please explain better what you are trying to do when they damage an entity... I will help! :)
Okay then, make sure you have actually created your config.yml in your project resources, if you have data in it!
Gnat008 I guess, well oops, I was bored.
EntityType.PLAYER exists! ;) *Hint*
Try initializing it. public class random { FileConfiguration config; public void onEnable(){...
Separate names with a comma.