overhaul provider structure
This commit is contained in:
17
OwnChar.Server/Commands/CmdSave.cs
Normal file
17
OwnChar.Server/Commands/CmdSave.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Pilz.Plugins.Advanced;
|
||||
|
||||
namespace OwnChar.Server.Commands
|
||||
{
|
||||
public class CmdSave() : PluginFunction(IServerCommand.FeatureCode, "ownchar.save"), IPluginFeatureProvider<CmdSave>, IServerCommand
|
||||
{
|
||||
public static CmdSave Instance { get; } = new();
|
||||
|
||||
public string Command => "save";
|
||||
public string Description => "Saves the current state to disk.";
|
||||
|
||||
protected override object? ExecuteFunction(PluginFunctionParameter? @params)
|
||||
{
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user