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)),