From d7d7b2741a4eb26b7ecf7870ff47f3d5f5edebee Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 28 Jun 2014 18:53:06 -0700 Subject: [PATCH] Added MaxBrushRadiusException to WorldEditExceptionConverter. --- .../internal/command/WorldEditExceptionConverter.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/internal/command/WorldEditExceptionConverter.java b/src/main/java/com/sk89q/worldedit/internal/command/WorldEditExceptionConverter.java index 520e0d08d..6b8831d13 100644 --- a/src/main/java/com/sk89q/worldedit/internal/command/WorldEditExceptionConverter.java +++ b/src/main/java/com/sk89q/worldedit/internal/command/WorldEditExceptionConverter.java @@ -90,9 +90,14 @@ public class WorldEditExceptionConverter extends ExceptionConverterHelper { + e.getBlockLimit() + ")."); } + @ExceptionMatch + public void convert(MaxBrushRadiusException e) throws CommandException { + throw new CommandException("Maximum brush radius (in configuration): " + worldEdit.getConfiguration().maxBrushRadius); + } + @ExceptionMatch public void convert(MaxRadiusException e) throws CommandException { - throw new CommandException("Maximum radius: " + worldEdit.getConfiguration().maxRadius); + throw new CommandException("Maximum radius (in configuration): " + worldEdit.getConfiguration().maxRadius); } @ExceptionMatch