{
case 3600: // 1 hour left
if (isActive())
{
for (L2PcInstance player : players)
player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "Event ends in " + seconds / 60 / 60 +" hour(s)."));
//announcewinnerDiscon();
}
break;
case 1800: // 30 minutes left
case 900: // 15 minutes left
case 600: // 10 minutes left
case 300: // 5 minutes left
if (isActive())
{
for (L2PcInstance player : players)
player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "Event ends in " + seconds / 60 +" minute(s)."));
//announcewinnerDiscon();
}
break;
case 60: // 1 minute left
if (isActive())
{
for (L2PcInstance player : players)
player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "Event ends in " + seconds / 60 +" minute(s)."));
//announcewinnerDiscon();
}
break;
case 30: // 30 seconds left
case 10: // 10 seconds left
case 3: // 3 seconds left
case 2: // 2 seconds left
case 1: // 1 seconds left
if (isActive())
for (L2PcInstance player : players)
player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "Event ends in " + seconds +" second(s)."));
announcewinnerDiscon();
break;
}
}