Added an exception for a map to make it night.
This commit is contained in:
parent
4ceb156e69
commit
0586e5fb77
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user