This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
http://pastebin.com/SLQRgpi4
Here is my code. I need help on how to select the arena and save it with a number so that it can reset every time a game ends. How can i do that?
selects arena area
\/
does command to set it
the arena is able to reset itself after each game
Please help. I have a great idea for my plugin.
save the arena as schematic and then import it, I made a little util to do this (works with worldedit 6)
public static void paste(String schematicName, Location pasteLoc) { try { File schemfile = new File(PLUGIN.getDataFolder(), "/schematics/" + schematicName); EditSession Session = new EditSession(new BukkitWorld(pasteLoc.getWorld()), 999999999); Session.enableQueue(); SchematicFormat schematic = SchematicFormat.getFormat(schemfile); CuboidClipboard clipboard = schematic.load(schemfile); clipboard.paste(Session, BukkitUtil.toVector(pasteLoc), true); Session.flushQueue(); } catch (DataException | IOException ex) { ex.printStackTrace(); } catch (MaxChangedBlocksException ex) { ex.printStackTrace(); } }
I don't know if it works with asyncWE but I think it should make it work asynchronously too.
And remember that this forum is focused on forge modding and not bukkit plugin, the next time I suggest you to post it to bukkit forums
sorry for my bad english I'm Italian
http://pastebin.com/SLQRgpi4
Here is my code. I need help on how to select the arena and save it with a number so that it can reset every time a game ends. How can i do that?
selects arena area
\/
does command to set it
\/
the arena is able to reset itself after each game
Please help. I have a great idea for my plugin.
save the arena as schematic and then import it, I made a little util to do this (works with worldedit 6)
I don't know if it works with asyncWE but I think it should make it work asynchronously too.
And remember that this forum is focused on forge modding and not bukkit plugin, the next time I suggest you to post it to bukkit forums
sorry for my bad english I'm Italian