Whats wrong with this? It wont say /onduty is unknown it just does nothing.
using UnityEngine;
using Oxide.Core.Libraries.Covalence;
using System.Collections.Generic;
namespace Oxide.Plugins
{
[Info("On Duty", "Boop", "0.1")]
public class OnDuty : RustPlugin
{
[ChatCommand("onduty")]
private void DiscordCommand(IPlayer player)
{
string name = player.Name;
if (player.BelongsToGroup("admin"))
{
player.Message(name + "has got on duty!");
}
else
{
player.Reply("No access.");
}
}
}
}