From 5f73e50b2a1c5ef96e7dcb62d68f50bd6487169b Mon Sep 17 00:00:00 2001 From: Aaron Brock Date: Tue, 14 Jul 2015 04:05:06 -0400 Subject: [PATCH] fix --- .../plugin/gameengine/game/games/sg/SurvivalGames.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Pocket/plugins/Mineplex/src/mineplex/plugin/gameengine/game/games/sg/SurvivalGames.php b/Pocket/plugins/Mineplex/src/mineplex/plugin/gameengine/game/games/sg/SurvivalGames.php index 395b2a394..d8e511fba 100644 --- a/Pocket/plugins/Mineplex/src/mineplex/plugin/gameengine/game/games/sg/SurvivalGames.php +++ b/Pocket/plugins/Mineplex/src/mineplex/plugin/gameengine/game/games/sg/SurvivalGames.php @@ -10,6 +10,7 @@ namespace mineplex\plugin\gameengine\game\games\sg; use mineplex\plugin\gameengine\arenas\Arena; use mineplex\plugin\gameengine\game\components\countdown\GameStateCountdown; +use mineplex\plugin\gameengine\game\components\countdown\LobbyCountdown; use mineplex\plugin\gameengine\game\components\feature\features\DeathSpectate; use mineplex\plugin\gameengine\game\components\feature\features\FreezePlayers; use mineplex\plugin\gameengine\game\components\feature\features\JoinSpectate; @@ -29,12 +30,10 @@ use mineplex\plugin\gameengine\game\components\spectate\GameModeSpectateComponen use mineplex\plugin\gameengine\game\components\team\SimpleTeam; use mineplex\plugin\gameengine\game\components\team\SimpleTeamManager; use mineplex\plugin\gameengine\game\components\team\TeamDealer; +use mineplex\plugin\gameengine\game\components\victorytype\LMSVictoryType; use mineplex\plugin\gameengine\game\components\world\TimeComponent; use mineplex\plugin\gameengine\game\components\world\WorldComponent; use mineplex\plugin\gameengine\game\Game; -use mineplex\plugin\gameengine\game\components\countdown\LobbyCountdown; -use mineplex\plugin\gameengine\game\components\feature\Feature; -use mineplex\plugin\gameengine\game\components\victorytype\LMSVictoryType; class SurvivalGames implements Game { @@ -51,7 +50,7 @@ class SurvivalGames implements Game { $teamManager = new SimpleTeamManager($arena, [new SimpleTeam('Bench', '§6'), new SimpleTeam('Not Bench', '§b')]); new TeamDealer($arena, $teamManager); - + new ChestComponent($arena, $worldComponent); new LobbyComponent($arena); @@ -64,7 +63,7 @@ class SurvivalGames implements Game { $stopEveryThing = array(new NoBlockBreak($arena), new NoBlockPlace($arena),new NoDropItem($arena), new NoPickUpItem($arena)); - /** @var Feature[][] $features */ + $features = array( GameState::PRE_GAME => array( $stopEveryThing, $noDamage, $joinSpectate, new FreezePlayers($arena, $spectateComponent)),