From 953db6942513bdf0b5156c714fed58cf4c086cd8 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 16 Feb 2024 08:09:40 +0100 Subject: [PATCH] Fix BackupCommand --- .../steamwar/bausystem/features/backup/BackupCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/backup/BackupCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/backup/BackupCommand.java index f4194a4e..6e04d2a5 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/backup/BackupCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/backup/BackupCommand.java @@ -62,7 +62,7 @@ public class BackupCommand extends SWCommand { } @Register(value = "create", description = "BACKUP_HELP_CREATE") - public void backupCreate(@Validator Player p) { + public void backupCreate(@Validator("supervisor") Player p) { Region region = Region.getRegion(p.getLocation()); if (checkGlobalRegion(region, p)) { return; @@ -79,7 +79,7 @@ public class BackupCommand extends SWCommand { } @Register(value = "load", description = "BACKUP_HELP_LOAD") - public void backupLoad(@Validator Player p, @Mapper("backupName") String backupName) { + public void backupLoad(@Validator("supervisor") Player p, @Mapper("backupName") String backupName) { Region region = Region.getRegion(p.getLocation()); if (checkGlobalRegion(region, p)) { return; @@ -130,7 +130,7 @@ public class BackupCommand extends SWCommand { } SWListInv swListInv = new SWListInv<>(p, BauSystem.MESSAGE.parse("BACKUP_INV_NAME", p), swListEntries, (clickType, s) -> { p.getOpenInventory().close(); - backupLoad(p, s); + p.performCommand("backup load " + s); }); swListInv.open(); }