Separate current player count and max server slots

This commit is contained in:
stacey 2021-07-15 16:12:36 -04:00 committed by GitHub
parent 7e479ea396
commit 1e9804a13d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1528,7 +1528,8 @@ namespace TShockAPI
foo = foo.Replace("%map%", (TShock.Config.Settings.UseServerName ? TShock.Config.Settings.ServerName : Main.worldName));
foo = foo.Replace("%players%", String.Join(", ", players));
foo = foo.Replace("%specifier%", TShock.Config.Settings.CommandSpecifier);
foo = foo.Replace("%playercount%", String.Join("/", TShock.Utils.GetActivePlayerCount(), TShock.Config.MaxSlots));
foo = foo.Replace("%onlineplayers%", Convert.ToString(TShock.Utils.GetActivePlayerCount()));
foo = foo.Replace("%serverslots%", Convert.ToString(TShock.Config.Settings.MaxSlots));
SendMessage(foo, lineColor);
}