Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/moba
This commit is contained in:
commit
378fddf0c5
@ -55,8 +55,8 @@ public class BetaWhitelist extends MiniPlugin
|
||||
{
|
||||
Player player = event.getPlayer();
|
||||
Rank rank = _clientManager.Get(player).GetRank(true);
|
||||
if ((rank != Rank.MAPDEV && rank != Rank.MAPPER && rank != Rank.MAPLEAD && rank.has(Rank.TITAN) // If this player is Titan+ (and not a builder),
|
||||
|| _powerPlayClubRepository.getCachedData(player).isSubscribed()) // a PPC subscriber,
|
||||
if (rank.has(Rank.TITAN) // If this player is Titan+
|
||||
|| _powerPlayClubRepository.getCachedData(player).isSubscribed() // a PPC subscriber,
|
||||
|| EXTRA_PLAYERS.contains(player.getUniqueId())) // or explicitly whitelisted,
|
||||
{
|
||||
return; // allow them in
|
||||
|
@ -52,7 +52,10 @@ public class FountainManager extends MiniPlugin
|
||||
@EventHandler
|
||||
public void onDamage(EntityDamageByEntityEvent event)
|
||||
{
|
||||
tryBrawl((Player)event.getDamager(), event.getEntity());
|
||||
if (event.getDamager() instanceof Player)
|
||||
{
|
||||
tryBrawl((Player) event.getDamager(), event.getEntity());
|
||||
}
|
||||
}
|
||||
|
||||
private void tryBrawl(Player player, Entity entity)
|
||||
|
Loading…
Reference in New Issue
Block a user