From 966ed270db7efcd46121cfd518f5a1e32af2af07 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 20 Sep 2021 21:47:00 +0200 Subject: [PATCH] Implement update logic from old system Signed-off-by: yoyosource --- .../bausystem/features/script/CustomScriptListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomScriptListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomScriptListener.java index 5b98bc44..82333c5a 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomScriptListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomScriptListener.java @@ -192,6 +192,10 @@ public class CustomScriptListener implements Listener { updateInventory(p); String s = UserConfig.getConfig(p.getUniqueId(), "bausystem-scripts"); + if (s == null) { + s = UserConfig.getConfig(p.getUniqueId(), "bausystem-commands"); + UserConfig.removePlayerConfig(p.getUniqueId(), "bausystem-commands"); + } YAPIONObject yapionObject; if (s == null) { yapionObject = new YAPIONObject();