mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
Use ConfirmableCommand#askConfirmation(User, String, Runnable) in AdminSchemSaveCommand
This commit is contained in:
parent
a7d001d578
commit
cf11c1b9c1
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user