Can't get command to work in my plugin
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.");
            }
        }



    }
}
​
Change RustPlugin to CovalencePlugin, change ChatCommand to Command.
Thanks! I guess I was watching an outdated video.

Merged post

Also, how do I send a message to the whole server. As you can see it most likely is sending a message to the player.
server.Broadcast("message")