From d45be091bd91a648b701f0bfec641c4216011bb7 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Fri, 1 May 2020 14:21:25 +0200 Subject: [PATCH] Fixed the confirmation warning message showing twice in AdminRegisterCommand It will now only be sent once, when asking for confirmation --- .../bentobox/api/commands/admin/AdminRegisterCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/api/commands/admin/AdminRegisterCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/admin/AdminRegisterCommand.java index 2232b8736..613b38409 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/admin/AdminRegisterCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/admin/AdminRegisterCommand.java @@ -102,8 +102,7 @@ public class AdminRegisterCommand extends ConfirmableCommand { return true; }).orElse(false)) { // Island does not exist - this is a reservation - user.sendMessage("commands.admin.register.no-island-here"); - this.askConfirmation(user, () -> { + this.askConfirmation(user, user.getTranslation("commands.admin.register.no-island-here"), () -> { // Make island here Island i = getIslands().createIsland(closestIsland, targetUUID); if (i == null) {