Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BukkitWorld bkworld = new BukkitWorld(Bukkit.getWorld(world));
- try (EditSession editSession = WorldEdit.getInstance().getEditSessionFactory().getEditSession(bkworld, -1)) {
- Region reg = new CuboidRegion(bkworld, BlockVector3.at(x1, y1, z1), BlockVector3.at(x2, y2, z2));
- bkworld.regenerate(reg, editSession);
- editSession.close();
- } catch(Exception e) {
- e.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement