Port region commands

This commit is contained in:
Kenzie Togami
2019-04-23 18:46:46 -07:00
parent f2283e8ad0
commit f81ffdde0c
3 changed files with 183 additions and 198 deletions

View File

@ -163,10 +163,8 @@ public class WorldEditExceptionConverter extends ExceptionConverterHelper {
}
@ExceptionMatch
public void convert(ConditionFailedException e) throws CommandException {
if (e.getCondition() instanceof PermissionCondition) {
throw new CommandException("You are not permitted to do that. Are you in the right mode?", e, null);
}
public void convert(IllegalArgumentException e) throws CommandException {
throw new CommandException(e.getMessage(), e, null);
}
}