Added a /green command, which greens the surrounding landscape.

This commit is contained in:
TomyLobo
2011-08-16 18:43:13 +02:00
parent 6c5d1236c7
commit 151b4c0fa1
2 changed files with 65 additions and 1 deletions

View File

@ -294,7 +294,26 @@ public class UtilityCommands {
int affected = editSession.thaw(session.getPlacementPosition(player), size);
player.print(affected + " surfaces thawed.");
}
@Command(
aliases = {"green"},
usage = "[radius]",
desc = "Greens the area",
min = 0,
max = 1
)
@CommandPermissions({"worldedit.green"})
@Logging(PLACEMENT)
public static void green(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
throws WorldEditException {
double size = args.argsLength() > 0 ? Math.max(1, args.getDouble(0)) : 10;
int affected = editSession.green(session.getPlacementPosition(player), size);
player.print(affected + " surfaces greened.");
}
@Command(
aliases = {"ex", "ext", "extinguish"},
usage = "[radius]",