mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
21 lines
539 B
C#
21 lines
539 B
C#
using EggLink.DanhengServer.Command;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Command
|
|
{
|
|
public static class CommandExecutor
|
|
{
|
|
public delegate void RunCommand(ICommandSender sender, string cmd);
|
|
public static event RunCommand? OnRunCommand;
|
|
|
|
public static void ExecuteCommand(ICommandSender sender, string cmd)
|
|
{
|
|
OnRunCommand?.Invoke(sender, cmd);
|
|
}
|
|
}
|
|
}
|