summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-01-29 18:54:53 +0800
committerkeuin <[email protected]>2021-01-29 18:54:53 +0800
commit602fb9e88685041abac73f868cb697123e15865c (patch)
treefab97907433b15ab88a55af03c88f6f22ce90676 /src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java
parentb0208136e0dab098d8270b56b65521e13ff3d732 (diff)
Add Op login hint in the next start after restoring
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java b/src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java
index 87f667d..e148f24 100644
--- a/src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java
+++ b/src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java
@@ -288,7 +288,7 @@ public final class KBCommands {
//KBMain.restore("name")
MinecraftServer server = context.getSource().getMinecraftServer();
String backupFileName = parseBackupFileName(context, StringArgumentType.getString(context, "backupName"));
- backupFileName = parseBackupFileName(context, backupFileName);
+// backupFileName = parseBackupFileName(context, backupFileName);
if (backupFileName == null)
return list(context); // Show the list and return
@@ -501,7 +501,7 @@ public final class KBCommands {
String backupName = StringArgumentType.getString(context, "backupName");
if (backupName.matches("[0-9]*")) {
- // If numeric input
+ // treat numeric input as backup index number in list
int index = Integer.parseInt(backupName) - 1;
synchronized (backupList) {
return backupList.get(index).getBackupFileName(); // Replace input number with real backup file name.