hello im new in plugins, and i need help, how to fix this command, game makes so much updates because last time this plugin was working last time.
using Rust;
namespace Oxide.Plugins
{
[Info("Players", "dunno", "0.1.0")]
public class Players : RustPlugin
{
void OnPlayerChat(ConsoleSystem.Arg arg)
{
var message = arg.GetString(1);
if (message.Contains("!players"))
{
var playerCount = BasePlayer.activePlayerList.Count;
if (playerCount > 1)
PrintToChat($"<color=#FF7400>[Rustical] </color><color=#B1B1B1>PLAYERS ONLINE:</color> <color=red>{playerCount}</color>");
else
PrintToChat("<color=#FF7400>[Rustical] </color><color=#B1B1B1>PLAYERS ONLINE:</color> <color=red>{playerCount}</color>");
}
}
}
}