From e57dc18671127e764e9b8445239e386f61cc4da0 Mon Sep 17 00:00:00 2001 From: Cekis Date: Thu, 7 Apr 2016 04:30:36 +0100 Subject: [PATCH] Changed how config variable is read for April Fools event. --- .../game/script/event/aprilfools/starport_april_fools.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sku.0/sys.server/compiled/game/script/event/aprilfools/starport_april_fools.java b/sku.0/sys.server/compiled/game/script/event/aprilfools/starport_april_fools.java index 00fe8ead6..205b50086 100755 --- a/sku.0/sys.server/compiled/game/script/event/aprilfools/starport_april_fools.java +++ b/sku.0/sys.server/compiled/game/script/event/aprilfools/starport_april_fools.java @@ -28,7 +28,10 @@ public class starport_april_fools extends script.base_script public int heartbeat(obj_id self, dictionary params) throws InterruptedException { String foolsDayRunning = getConfigSetting("GameServer", "foolsDay"); - if (foolsDayRunning == null || foolsDayRunning.length() <= 0) + if(foolsDayRunning.equals("false") || foolsDayRunning.equals("0")){ + return SCRIPT_CONTINUE; + } + if (foolsDayRunning.length() <= 0) { messageTo(self, "heartbeat", null, 60.0f, false); return SCRIPT_CONTINUE;