Added //naturalize.

This commit is contained in:
sk89q
2011-08-02 15:46:11 -07:00
parent 9343b3d1a8
commit 8bb0629d79
3 changed files with 197 additions and 103 deletions

View File

@ -121,6 +121,23 @@ public class RegionCommands {
player.print(affected + " block(s) have been overlayed.");
}
@Command(
aliases = {"/naturalize"},
usage = "",
desc = "3 layers of dirt on top then rock below",
min = 0,
max = 0
)
@CommandPermissions({"worldedit.region.naturalize"})
public static void naturalize(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
throws WorldEditException {
Region region = session.getSelection(player.getWorld());
int affected = editSession.naturalizeCuboidBlocks(region);
player.print(affected + " block(s) have been naturalized.");
}
@Command(
aliases = {"/walls"},
usage = "<block>",