You could do 5x5 like this: int bx = (int) e.getBlock().getLocation().getX(); int by = (int) e.getBlock().getLocation().getY(); int bz = (int)...
My guess is that loading a world with WorldCreator actually generates a world (though I have no experience with WorldCreator). Is it necessary to...
Yes, the deleteFolder and copyFolder functions I found on the internet, and they may be faulty (because the internet lies sometimes :(). Maybe try...
He probably means that, while the code is intended to change a scoreboard value, it does not change anything.
Can't you just delete the entire world folder and copy a blank 'template world' and rename that to the name of the original world folder? If I...
What you can do is have a template folder on the server (named something like 'template') which has the non-used map and when resetting, delete...
@Tacodude just remember that the BlockPhysicsEvent is called often thousands of times per second, so if you don't want lag don't do any heavy...
Maybe BlockPhysicsEvent?
can't you just have a function that loops over the hashmap and removes it from the hashmap when it finds the gameroom that has to be closed, and...
To clarify, you should do: p.getInventory().setItemInHand(new ItemStack(Material.valueOf(args[0])); Material#valueOf() gets the material, and then...
First of all, I would recommend to use shooter.getInventory().getItemInMainHand(), because it isn't deprecated. That isn't the problem though. If...
To change the explosion power, you can get the fireball using an EntityExplodeEvent, check if it is a fireball, cast it to fireball, and use...
I'm not sure, but couldn't you just do @EventHandler(priority = EventPriority.HIGHEST)? Then you can cancel the event if they're not allowed to...
https://www.spigotmc.org/resources/editablesign.2502/ ?
How would you define "[item]"? A slot number?
https://dev.bukkit.org/projects/enchant-plus This is the plugin I made for that, it should apply to you as well.
I just made it, and am waiting for the project to be approved. I had to change the command to /enchantp because the /enchant command already...
I wanted to give you an update: I have added the shears, but the project has STILL not been approved :( If it has been approved, I will let you...
I have made it, and am waiting for the project to be approved. I have not added shears, fishing rod, carrot on a stick, flint and steel, bow,...
Further explaining what @Strahan said, make a class that implements Runnable. This will have a run method, in which you can place the code you...
Separate names with a comma.