mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-21 07:13:00 -04:00
Changed how config variable is read for April Fools event.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user