mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-14 13:14:36 +01:00
Command parser that probably works
This commit is contained in:
19
GameServer/Commands/TestCommand.cs
Normal file
19
GameServer/Commands/TestCommand.cs
Normal 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]}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user