forked from 360NENZ/Crepe-Inc-YSGM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CommandMap.cs
26 lines (22 loc) · 815 Bytes
/
CommandMap.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using YSGM.Handlers;
namespace YSGM
{
public class CommandMap
{
public static Dictionary<string, BaseCommand> handlers = new();
public static void RegisterAll()
{
handlers.Add("shell", new ShellCommand()); // SSH shell
handlers.Add("sql", new SQLCommand()); // SQL query
handlers.Add("gm", new GMCommand()); // GM command
handlers.Add("mail", new MailCommand()); // Send mail
handlers.Add("muip", new MUIPCommand()); // raw MUIP query
// Exit app
handlers.Add("exit", new ExitCommand());
handlers.Add("quit", new ExitCommand());
// Player data
handlers.Add("pull", new PullCommand());
handlers.Add("push", new PushCommand());
}
}
}