SteamWar/BauSystem2.0
Archiviert
12
0

Implement update logic from old system

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-09-20 21:47:00 +02:00
Ursprung ac7b0d929e
Commit 966ed270db

Datei anzeigen

@ -192,6 +192,10 @@ public class CustomScriptListener implements Listener {
updateInventory(p); updateInventory(p);
String s = UserConfig.getConfig(p.getUniqueId(), "bausystem-scripts"); 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; YAPIONObject yapionObject;
if (s == null) { if (s == null) {
yapionObject = new YAPIONObject(); yapionObject = new YAPIONObject();