Create Console Commands
On this page we will explain how to create own console commands.
using Onsharp.Commands;
using Onsharp.Entities;
using Onsharp.Plugins;
namespace Tutorial
{
public class PluginMain : Plugin
{
public override void OnStart()
{
//Your start up logic here
}
public override void OnStop()
{
//Your stop and clean up logic here
}
[ConsoleCommand("name", "Does something")]
public void OnConsoleCommand(string param1)
{
// Does something
}
}
}Register Commands
Last updated