mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-16 06:44:41 +01:00
Init enter game
This commit is contained in:
19
GameServer/Command/CommandExecutor.cs
Normal file
19
GameServer/Command/CommandExecutor.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
namespace KianaBH.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);
|
||||
}
|
||||
|
||||
public static void ConsoleExcuteCommand(string input)
|
||||
{
|
||||
CommandManager.HandleCommand(input, new ConsoleCommandSender(CommandManager.Logger));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user