mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-03 19:56:40 +00:00
Added a //hollow command, which hollows out the object contained in the selection.
This commit is contained in:
@ -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.");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user