Added a //hollow command, which hollows out the object contained in the selection.

This commit is contained in:
TomyLobo
2011-12-08 10:31:12 +01:00
parent 90b062a9d8
commit 2e1087a49a
2 changed files with 114 additions and 0 deletions

View File

@ -396,4 +396,22 @@ public class RegionCommands {
player.printError(e.getMessage());
}
}
@Command(
aliases = { "/hollow" },
usage = "",
desc = "Hollows out the object contained in this selection",
min = 0,
max = 0
)
@CommandPermissions("worldedit.region.hollow")
@Logging(REGION)
public static void hollow(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
throws WorldEditException {
int affected = editSession.hollowOutRegion(session.getSelection(player.getWorld()));
player.print(affected + " block(s) have been changed.");
}
}