Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("==================================")
- print("Votre ip est: ",os.getComputerID())
- print("==================================")
- print()
- print()
- while true do
- rednet.open("top")
- id,dest,msg = rednet.receive()
- id = tonumber(id)
- if msg == ("servstop") then
- print("ID : [",id,"] has stoped the server")
- print("server will be closed in 10 seconds")
- sleep(10)
- os.reboot()
- else
- dest = tonumber(dest)
- print("[ID: ",id,"]"," [Send : ",msg,"] "," [ To: ",dest,"]")
- send = rednet.send(dest,id,msg)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement