Separate current player count and max server slots
This commit is contained in:
parent
7e479ea396
commit
1e9804a13d
1 changed files with 2 additions and 1 deletions
|
|
@ -1528,7 +1528,8 @@ namespace TShockAPI
|
||||||
foo = foo.Replace("%map%", (TShock.Config.Settings.UseServerName ? TShock.Config.Settings.ServerName : Main.worldName));
|
foo = foo.Replace("%map%", (TShock.Config.Settings.UseServerName ? TShock.Config.Settings.ServerName : Main.worldName));
|
||||||
foo = foo.Replace("%players%", String.Join(", ", players));
|
foo = foo.Replace("%players%", String.Join(", ", players));
|
||||||
foo = foo.Replace("%specifier%", TShock.Config.Settings.CommandSpecifier);
|
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);
|
SendMessage(foo, lineColor);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue