Fix /rg claim.

This commit is contained in:
wizjany 2019-05-15 19:24:23 -04:00
parent d6c2504bbf
commit 3e899a70c4

View File

@ -291,7 +291,8 @@ public void claim(CommandContext args, Actor sender) throws CommandException {
.registerWithSupervisor(WorldGuard.getInstance().getSupervisor(), description)
.sendMessageAfterDelay("(Please wait... " + description + ")")
.onSuccess(TextComponent.of(String.format("A new region has been claimed named '%s'.", id)), null)
.onFailure("Failed to claim region", WorldGuard.getInstance().getExceptionConverter());
.onFailure("Failed to claim region", WorldGuard.getInstance().getExceptionConverter())
.buildAndExec(WorldGuard.getInstance().getExecutorService());
}
/**