3.1 Config Refactor

This commit is contained in:
AconiteGodOfSWG
2021-03-28 16:44:33 -04:00
parent 694a499356
commit 355796dd48
148 changed files with 900 additions and 6277 deletions
@@ -1,6 +1,7 @@
package script.event.lost_squadron;
import script.dictionary;
import script.library.events;
import script.library.utils;
import script.location;
import script.obj_id;
@@ -18,8 +19,7 @@ public class spawner extends script.base_script
};
public int OnInitialize(obj_id self) throws InterruptedException
{
String setting = getConfigSetting("EventTeam", "lostSquadron");
if (setting == null || setting.equals("") || !setting.equals("true"))
if (!events.isEventActive(events.LOST_SQUADRON))
{
return SCRIPT_CONTINUE;
}