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?
Separate names with a comma.