That is disappointing. I was hoping to be able to paste schematics into the world programmatically without having the overhead of dozens of...
I'm trying to use the WorldEdit API to save/load some schematics. However, I do not want the WorldEdit commands on my server. How do I achieve this?
That's... actually not a bad idea. It's certainly safer than trying to catch every possible block removal event. I will give this a try. Thanks.
I'm developing a skyblock plugin in vanilla Minecraft in which placed gold blocks will generate a certain amount of gold per hour. Naturally, I...
Dahwn Serialization is the process of translating data structures into a format that can be written to a file. I'm not looking for a way to store...
I'd like to write my own serialize() function for Bukkit's Block to save and load blocks. I've seen other people attempt this, but I can't find...
I'd like to generate my own structures, like a very simple tower or castle, and place them in a world, in the same way that villages/witch...
Perhaps I'm missing something, because I've searched everywhere, but how are servers with plugins able to run in 1.7.7 already? Are these servers...
When a player mines a mob spawner, I'd like the mob spawner to drop the appropriate item so that the player can pick it up and place it for later...
maxxb123 I created my own command parser so I don't know the answer to the first question. 2....
Elimnator I'd need to see the stack trace. But shot in the dark: You could be feeding Location.getBlock(int, int, int) a negative Y value....
OHQCraft The item that a player interacted with in PlayerInteractEvent will often be null. You cannot call methods on a null object. Thus:...
Verify_x Bukkit's BanList offers all the things you need. public void permBan(Player player, String reason) { BanList banList =...
LRRoberts0122 It's complicated. Bukkit certainly offers a way of simply giving a player 64+ emeralds in a single slot:...
maestro34 Did you register your events?
OHQCraft It's not a problem. A BlockState object is the same as a Block object, only that method calls to a BlockState object will not affect the...
OHQCraft BlockPlaceEvent event; BlockState block = event.getBlockReplacedState(); Note that you cannot retrieve the original Block from the...
pogof public void sendMessage(Collection<Player> players, String... message) { for(Player player:players) { for(String...
Also note a /wild command can be dangerous if abused. Each time someone executes /wild the server may have to generate several dozen chunks, which...
xize This code will teleport the player to a random location given an x and z radius. The player's client will still have to load the chunk...
Separate names with a comma.