- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
GsL
private void changeMode(int mode) { if(_nightCreatures.size() == 0 && _dayCreatures.size() == 0) return; switch(mode) { case 0: { Announcements.getInstance().announceToAll("Day begin."); } spawnDayCreatures(); specialNightBoss(0); ShadowSenseMsg(0); break; case 1: { Announcements.getInstance().announceToAll("Night begin."); } spawnNightCreatures(); specialNightBoss(1); ShadowSenseMsg(1); break; default: _log.warning("DayNightSpawnManager: Wrong mode sent"); break; } }this code its ok? i add announce when change day to night will work normal?
i wanna when is day announce day begin and when is night same..
7 answers to this question
Recommended Posts