Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- multishell = nil
- os.loadAPI("apis/db")
- _G.chatbox = peripheral.find("chatbox_admin")
- _G.cmdblock = peripheral.find("command")
- _G.modem = peripheral.find("modem")
- function _G.csay(...)
- chatbox.say(...)
- end
- function _G.ctell(player,...)
- chatbox.tell(player,...)
- end
- function _G.say(...)
- local v = table.concat({...}, " ")
- local cmd
- if db.get("os","nativeVoice") then
- cmd = "/say "..v
- else
- cmd = "/sudo @a ping "..db.get("os","name").." &r"..v
- end
- cmdblock.setCommand(cmd)
- cmdblock.runCommand()
- end
- function _G.tell(player,...)
- local v = table.concat({...}, " ")
- local cmd
- if db.get("os","nativeVoice") then
- cmd = "/tell ".. player .." "..v
- else
- cmd = "/sudo ".. player .." ping "..db.get("os","name").." &7&o"..v
- end
- cmdblock.setCommand(cmd)
- cmdblock.runCommand()
- end
- chatbox.setLabel("SSS INIT")
- csay("Starting up "..db.get("os","short").."...")
- if fs.exists(db.get("os","init")) then
- shell.run(db.get("os","init"))
- else
- csay("OS not found:")
- csay("could not find "..db.get("os","init"))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement