Adding Peace Phase Announcement.
This commit is contained in:
parent
625f7d3168
commit
be194c5493
@ -28,6 +28,7 @@ import mineplex.minecraft.game.core.damage.CustomDamageEvent;
|
|||||||
import mineplex.minecraft.game.core.explosion.CustomExplosion;
|
import mineplex.minecraft.game.core.explosion.CustomExplosion;
|
||||||
import nautilus.game.arcade.ArcadeManager;
|
import nautilus.game.arcade.ArcadeManager;
|
||||||
import nautilus.game.arcade.GameType;
|
import nautilus.game.arcade.GameType;
|
||||||
|
import nautilus.game.arcade.events.GameStateChangeEvent;
|
||||||
import nautilus.game.arcade.game.GameTeam;
|
import nautilus.game.arcade.game.GameTeam;
|
||||||
import nautilus.game.arcade.game.TeamGame;
|
import nautilus.game.arcade.game.TeamGame;
|
||||||
import nautilus.game.arcade.game.games.snowfight.kits.KitTactician;
|
import nautilus.game.arcade.game.games.snowfight.kits.KitTactician;
|
||||||
@ -114,6 +115,15 @@ public class SnowFight extends TeamGame
|
|||||||
this._peace = false;
|
this._peace = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
public void GameState(GameStateChangeEvent event)
|
||||||
|
{
|
||||||
|
if(event.GetState() != GameState.Live)
|
||||||
|
return;
|
||||||
|
|
||||||
|
this.Announce(C.cRed + C.Bold + "ALERT: " + ChatColor.RESET + C.Bold + "15 seconds Peace Phase is starting!");
|
||||||
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void Weather(UpdateEvent event)
|
public void Weather(UpdateEvent event)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user