mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 04:26:42 +00:00
Port region commands
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user