Advertisement
SinisterMemories

Command.lua

Apr 4th, 2020
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. -- [[ Command Declaration ]] --
  2.  
  3. local command = {
  4.     commands = {}
  5. }
  6.  
  7. do
  8.     --// Command Methods
  9.  
  10.     local commands = command.commands
  11.  
  12.     function command.new(aliases, callback)
  13.         for i, alias in pairs(aliases) do
  14.             commands[alias] = callback
  15.         end
  16.     end
  17. end
  18.  
  19. -- [[ Init ]] --
  20.  
  21. return command
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement