Add player count support for MOTD

This commit is contained in:
stacey 2021-07-15 15:48:27 -04:00 committed by GitHub
parent c5421460ae
commit b88d1f562f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1528,6 +1528,7 @@ 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));
SendMessage(foo, lineColor);
}