Register Search and Destroy in GameFactory

This commit is contained in:
libraryaddict 2014-11-25 22:00:49 +13:00
parent 60fd6b01cc
commit 5bf185e588

View File

@ -3,6 +3,7 @@ package nautilus.game.arcade;
import java.util.HashMap;
import nautilus.game.arcade.game.games.sneakyassassins.*;
import org.bukkit.ChatColor;
import nautilus.game.arcade.game.Game;
@ -31,6 +32,7 @@ import nautilus.game.arcade.game.games.mineware.MineWare;
import nautilus.game.arcade.game.games.quiver.Quiver;
import nautilus.game.arcade.game.games.quiver.QuiverTeams;
import nautilus.game.arcade.game.games.runner.Runner;
import nautilus.game.arcade.game.games.searchanddestroy.SearchAndDestroy;
import nautilus.game.arcade.game.games.sheep.SheepGame;
import nautilus.game.arcade.game.games.smash.SuperSmash;
import nautilus.game.arcade.game.games.smash.SuperSmashDominate;
@ -87,6 +89,7 @@ public class GameFactory
else if (gameType == GameType.Quiver) return new Quiver(_manager);
else if (gameType == GameType.QuiverTeams) return new QuiverTeams(_manager);
else if (gameType == GameType.Runner) return new Runner(_manager);
else if (gameType == GameType.SearchAndDestroy) return new SearchAndDestroy(_manager);
else if (gameType == GameType.SnowFight) return new SnowFight(_manager);
else if (gameType == GameType.Sheep) return new SheepGame(_manager);
else if (gameType == GameType.Smash) return new SuperSmash(_manager);