Update the fireball times to 20min

This commit is contained in:
libraryaddict 2015-01-22 01:00:57 +13:00
parent 94607585a3
commit 29dc598c00

View File

@ -1171,7 +1171,7 @@ public class WizardBattles extends SoloGame
@EventHandler
public void onSecond(UpdateEvent event)
{
if (event.getType() == UpdateType.TWOSEC && IsLive() && System.currentTimeMillis() > getGameLiveTime() + (0 * 60 * 1000))
if (event.getType() == UpdateType.TWOSEC && IsLive() && System.currentTimeMillis() > getGameLiveTime() + (20 * 60 * 1000 * 1000))
{
for (Player player : GetPlayers(true))
{
@ -1248,8 +1248,8 @@ public class WizardBattles extends SoloGame
GetScoreboard().Write(
C.cWhite
+ UtilTime.convertString(
IsLive() ? Math.max(0, (getGameLiveTime() + (0 * 60 * 1000)) - System.currentTimeMillis())
: (0 * 60 * 1000), 1, TimeUnit.MINUTES));
IsLive() ? Math.max(0, (getGameLiveTime() + (20 * 60 * 1000 * 1000)) - System.currentTimeMillis())
: (20 * 60 * 1000 * 1000), 1, TimeUnit.MINUTES));
GetScoreboard().Draw();
}