Rename Utils.ActivePlayers to something better.
Issues related to ICollections being null led to reverting migrating this to TSPlayer until a better solution is uncovered.
This commit is contained in:
parent
a5cad284a8
commit
df4da817b6
5 changed files with 11 additions and 11 deletions
|
|
@ -1892,7 +1892,7 @@ namespace TShockAPI
|
|||
if (OnGetSection(args.Player, args.Data, args.Data.ReadInt32(), args.Data.ReadInt32()))
|
||||
return true;
|
||||
|
||||
if (TShock.Utils.ActivePlayers() + 1 > TShock.Config.MaxSlots &&
|
||||
if (TShock.Utils.GetActivePlayerCount() + 1 > TShock.Config.MaxSlots &&
|
||||
!args.Player.HasPermission(Permissions.reservedslot))
|
||||
{
|
||||
args.Player.Kick(TShock.Config.ServerFullReason, true, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue