Added +20 player buffer for lobbies.
This commit is contained in:
parent
ff5bc3f485
commit
f235f67aa5
@ -384,7 +384,7 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
|||||||
CoreClient client = _clientManager.Get(event.getPlayer().getName());
|
CoreClient client = _clientManager.Get(event.getPlayer().getName());
|
||||||
|
|
||||||
// Reserved Slot Check
|
// Reserved Slot Check
|
||||||
if (Bukkit.getOnlinePlayers().length >= Bukkit.getServer().getMaxPlayers())
|
if (Bukkit.getOnlinePlayers().length - Bukkit.getServer().getMaxPlayers() >= 20)
|
||||||
{
|
{
|
||||||
if (!client.GetRank().Has(Rank.ULTRA))
|
if (!client.GetRank().Has(Rank.ULTRA))
|
||||||
{
|
{
|
||||||
@ -399,6 +399,8 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
|||||||
event.allow();
|
event.allow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
event.allow();
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.LOW)
|
@EventHandler(priority = EventPriority.LOW)
|
||||||
|
Loading…
Reference in New Issue
Block a user