public void notifyChangeMode() {
   try {
     if (GameTimeController.getInstance().isNowNight()) changeMode(1);
     else changeMode(0);
   } catch (Exception e) {
     _log.log(Level.WARNING, "Error while notifyChangeMode(): " + e.getMessage(), e);
   }
 }
 private String gameTime() {
   int t = GameTimeController.getInstance().getGameTime();
   int h = t / 60;
   int m = t % 60;
   SimpleDateFormat format = new SimpleDateFormat("H:mm");
   Calendar cal = Calendar.getInstance();
   cal.set(Calendar.HOUR_OF_DAY, h);
   cal.set(Calendar.MINUTE, m);
   return format.format(cal.getTime());
 }
  public L2RaidBossInstance handleBoss(L2Spawn spawnDat) {
    if (_bosses.containsKey(spawnDat)) return _bosses.get(spawnDat);

    if (GameTimeController.getInstance().isNowNight()) {
      L2RaidBossInstance raidboss = (L2RaidBossInstance) spawnDat.doSpawn();
      _bosses.put(spawnDat, raidboss);

      return raidboss;
    }

    _bosses.put(spawnDat, null);
    return null;
  }