summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java
diff options
context:
space:
mode:
authorKeuin <[email protected]>2020-04-24 17:48:26 +0800
committerkeuin <[email protected]>2020-04-24 17:48:26 +0800
commit474609422202ae33e1c941f67f000f9d88aa297c (patch)
tree02f303e2c94ec4d2ce6c887bd268406482ae09dd /src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java
parentea01faf3947814fe7ecaa3705e5fbf0f171f7e48 (diff)
Version 1.3.1-dev (BugFix)1.3.1-dev
Improve some info output. BugFix: Deleted backup won't immediately disappear in the suggestion list.
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java b/src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java
index f3a3b07..79105b2 100644
--- a/src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java
+++ b/src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java
@@ -38,6 +38,9 @@ public final class KBPluginEvents implements ModInitializer, ServerStartCallback
public void onStartServer(MinecraftServer server) {
PrintUtil.debug("Initializing ...");
+ // Initialize player manager reference
+ PrintUtil.setPlayerManager(server.getPlayerManager());
+
// Update backup suggestion list
BackupNameSuggestionProvider.setBackupSaveDirectory(BackupFilesystemUtil.getBackupSaveDirectory(server).getPath());