❗Commands
You can create commands inside your plugins for users to interact with.
Command Types
Individual commands
[CommandHandler(typeof(ClientCommandHandler))]
[CommandHandler(typeof(RemoteAdminCommandHandler))]
[CommandHandler(typeof(GameConsoleCommandHandler))]
public class TestCommand : ICommand
{
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
{
response = "This was a test."; // You need to return a response
return true; // Return true if the command was executed or false if not (missing permissions...).
}
public string Command { get; } = "Test"; // The command used in the console.
public string[] Aliases { get; } = Array.Empty<string>(); // The desired aliases.
public string Description { get; } = "Test command"; // A small description.
}Parent Commands

Last updated