Added an exception for a map to make it night.

This commit is contained in:
Mysticate 2015-07-26 00:27:09 -04:00
parent 4ceb156e69
commit 0586e5fb77

View File

@ -108,11 +108,23 @@ public class BombLobbers extends TeamGame implements IThrown
HungerSet = 20;
WorldTimeSet = -1;
WorldTimeSet = 6000;
registerStatTrackers(new Tracker6Kill(this), new TrackerBlastProof(this), new TrackerNoDamage(this), new TrackerTNTThrown(this), new TrackerDirectHit(this));
}
@EventHandler
public void setTime(GameStateChangeEvent event)
{
if (event.GetState() != GameState.Prepare)
return;
if (WorldData.MapName.equalsIgnoreCase("Intergalactic"))
{
WorldTimeSet = 18000;
}
}
public void addKill(Player player)
{
_kills.put(player, _kills.containsKey(player) ? _kills.get(player) + 1 : 1);