Hi, what is wrong here?
void OnPlayerChat(ConsoleSystem.Arg arg)
{
var message = arg.GetString(0);
if (message.Contains("!players"))
{
var playerCount = BasePlayer.activePlayerList.Count;
if (playerCount > 1)
PrintToChat($"[Rustical] On this server is currently {playerCount} players online.");
else
PrintToChat("[Rustical] On this server is currently 1 player online.");
}
}