Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. BukkitWorld bkworld = new BukkitWorld(Bukkit.getWorld(world));
  2. try (EditSession editSession = WorldEdit.getInstance().getEditSessionFactory().getEditSession(bkworld, -1)) {
  3. Region reg = new CuboidRegion(bkworld, BlockVector3.at(x1, y1, z1), BlockVector3.at(x2, y2, z2));
  4. bkworld.regenerate(reg, editSession);
  5.  
  6. editSession.close();
  7. } catch(Exception e) {
  8. e.printStackTrace();
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement