Add beta whitelist to MOBA

This commit is contained in:
cnr 2017-06-14 19:54:23 -05:00
parent 29d5a80a67
commit 2a0796472b

View File

@ -1,6 +1,7 @@
package nautilus.game.arcade.game.games.moba; package nautilus.game.arcade.game.games.moba;
import mineplex.core.Managers; import mineplex.core.Managers;
import mineplex.core.beta.BetaWhitelist;
import mineplex.core.common.Pair; import mineplex.core.common.Pair;
import mineplex.core.common.Rank; import mineplex.core.common.Rank;
import mineplex.core.common.util.C; import mineplex.core.common.util.C;
@ -97,6 +98,7 @@ public class Moba extends TeamGame
private final CapturePointManager _capturePoint; private final CapturePointManager _capturePoint;
private final ArrowKBManager _arrowKb; private final ArrowKBManager _arrowKb;
private final BuffManager _buffs; private final BuffManager _buffs;
private final BetaWhitelist _betaWhitelist;
public Moba(ArcadeManager manager) public Moba(ArcadeManager manager)
{ {
@ -163,6 +165,9 @@ public class Moba extends TeamGame
// Beta Message // Beta Message
registerManager(new BetaManager(this)); registerManager(new BetaManager(this));
// Beta Whitelist
_betaWhitelist = new BetaWhitelist(manager.GetClients(), manager.getBonusManager().getPowerPlayClubRepository());
new CompassModule() new CompassModule()
.setGiveCompass(true) .setGiveCompass(true)
.setGiveCompassToSpecs(true) .setGiveCompassToSpecs(true)
@ -527,6 +532,7 @@ public class Moba extends TeamGame
super.disable(); super.disable();
_listeners.forEach(UtilServer::Unregister); _listeners.forEach(UtilServer::Unregister);
_listeners.clear(); _listeners.clear();
_betaWhitelist.deregisterSelf();
} }
@Override @Override