mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
15 lines
385 B
C#
15 lines
385 B
C#
using EggLink.DanhengServer.Command;
|
|
|
|
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);
|
|
}
|
|
} |