Command parser that probably works

This commit is contained in:
Kyle873
2023-05-29 11:17:34 -04:00
parent 6a090b2917
commit ca558f76bd
4 changed files with 101 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
using Common;
namespace PemukulPaku.GameServer.Commands
{
[CommandHandler("test")]
public class TestCommand : Command
{
public override void Run(Session? session, string[] args)
{
if (args.Length < 3)
{
c.Error("Not enough arguments");
return;
}
c.Log($"Testing {args[0]} {args[1]} {args[2]}");
}
}
}