From cf11c1b9c1c1f07b843f686013b3a8901305330a Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Mon, 3 Sep 2018 15:55:00 +0200 Subject: [PATCH] Use ConfirmableCommand#askConfirmation(User, String, Runnable) in AdminSchemSaveCommand --- .../api/commands/admin/schem/AdminSchemSaveCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/api/commands/admin/schem/AdminSchemSaveCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/admin/schem/AdminSchemSaveCommand.java index b03dcd7e2..18a908662 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/admin/schem/AdminSchemSaveCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/admin/schem/AdminSchemSaveCommand.java @@ -33,8 +33,7 @@ public class AdminSchemSaveCommand extends ConfirmableCommand { // Check if file exists File newFile = new File(parent.getSchemsFolder(), args.get(0) + ".schem"); if (newFile.exists()) { - user.sendMessage("commands.admin.schem.file-exists"); - this.askConfirmation(user, () -> clipboard.save(user, args.get(0))); + this.askConfirmation(user, user.getTranslation("commands.admin.schem.file-exists"), () -> clipboard.save(user, args.get(0))); return false; } else { return clipboard.save(user, args.get(0));