Added range command for brushes. Thanks Nichts

This commit is contained in:
Wizjany
2011-06-22 18:28:56 -04:00
parent 45302859ef
commit 021e99c252
6 changed files with 86 additions and 4 deletions

View File

@ -109,6 +109,22 @@ public class ToolUtilCommands {
player.print("Brush material set.");
}
@Command(
aliases = {"range"},
usage = "[pattern]",
desc = "Set the brush range",
min = 1,
max = 1
)
@CommandPermissions({"worldedit.brush.options.range"})
public static void range(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
throws WorldEditException {
int range = args.getInteger(0);
session.getBrushTool(player.getItemInHand()).setRange(range);
player.print("Brush range set.");
}
@Command(
aliases = {"size"},
usage = "[pattern]",