Revert "Disable beta whitelist for MOBA"
This reverts commit 0374506879
.
This commit is contained in:
parent
a6493ed18a
commit
b43203f831
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user