From b43203f831a53af70a9476906e3c857fdcf2c561 Mon Sep 17 00:00:00 2001 From: cnr Date: Thu, 22 Jun 2017 23:32:55 -0500 Subject: [PATCH] Revert "Disable beta whitelist for MOBA" This reverts commit 037450687908d789f15c0cb8e03733936f19e89a. --- .../nautilus/game/arcade/game/games/moba/Moba.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/moba/Moba.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/moba/Moba.java index c584057fe..66274c97e 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/moba/Moba.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/moba/Moba.java @@ -1,6 +1,7 @@ package nautilus.game.arcade.game.games.moba; import mineplex.core.Managers; +import mineplex.core.beta.BetaWhitelist; import mineplex.core.common.Pair; import mineplex.core.common.Rank; import mineplex.core.common.util.F; @@ -85,6 +86,7 @@ public class Moba extends TeamGame protected final TowerManager _tower; protected final CapturePointManager _capturePoint; protected final MinionManager _minion; + private BetaWhitelist _betaWhitelist; private int _inPlayers; @@ -129,6 +131,17 @@ public class Moba extends TeamGame // Beta Message registerManager(new BetaManager(this)); + // Beta Whitelist + _betaWhitelist = Managers.get(BetaWhitelist.class); + if (_betaWhitelist == null) + { + _betaWhitelist = new BetaWhitelist(manager.GetClients(), manager.getBonusManager().getPowerPlayClubRepository()); + } + else + { + _betaWhitelist.registerSelf(); + } + new CompassModule() .setGiveCompass(true) .setGiveCompassToSpecs(true) @@ -267,6 +280,7 @@ public class Moba extends TeamGame super.disable(); _listeners.forEach(UtilServer::Unregister); _listeners.clear(); + _betaWhitelist.deregisterSelf(); // Undisguise all players for (Player player : Bukkit.getOnlinePlayers())