Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local adarus = {}
- adarus.init = {}
- adarus.functions = {}
- adarus.utils = {}
- adarus.users = {}
- adarus.sounds = {}
- adarus.succes = {}
- adarus.errors = {}
- function adarus.utils.decode(data)
- local status, result = pcall(serial.unserialize, data)
- if result == nil then status = nil end --warning unable to transfer nil object, it will lead to status nil
- return status, result
- end
- function adarus.serve()
- for k,v in pairs(adarus.init) do
- if type(v) == "function" then
- v()
- else
- print(tostring(k) .. " needs to be function")
- end
- end
- while true do
- message, playername = event.pull("command")
- --etc etc
- end
- end
- function adarus.utils.commandExecutor(args, said)
- for index, item in pairs(args) do
- end
- function commandParser(command)
- local args = {}
- status, args = adarus.util.decode(command)
- adarus.utils.commandExecutor(args, command)
- end
- return adarus
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement