Beispiel #1
0
        public void HookChatCommand(string command, ChatCommandHookCall call, bool priority = false)
        {
            if (!ChatCommandHooks.ContainsKey(command))
            ChatCommandHooks.Add(command, new List<ChatCommandHookCall>());

            if (priority) ChatCommandHooks[command].Insert(0, call);
            else ChatCommandHooks[command].Add(call);
        }
Beispiel #2
0
        public void HookChatCommand(string command, ChatCommandHookCall call, bool priority = false)
        {
            if (!ChatCommandHooks.ContainsKey(command))
            {
                ChatCommandHooks.Add(command, new List <ChatCommandHookCall>());
            }

            if (priority)
            {
                ChatCommandHooks[command].Insert(0, call);
            }
            else
            {
                ChatCommandHooks[command].Add(call);
            }
        }