Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addCommand(k, fn, case)
- Commands[k] = Commands[k] or {}
- Commands[k][fn] = (case and true or false)
- end
- function removeCommands()
- for name,functions in pairs(Commands) do
- for fn in pairs(functions) do
- if fn then
- removeCommandHandler(name, fn)
- end
- end
- end
- end
- function installCommands()
- for name,functions in pairs(Commands) do
- for fn, case in pairs(functions) do
- if fn then
- addCommandHandler(name, fn, false, case)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment