Advertisement
rungholt

servertest

Aug 7th, 2023 (edited)
601
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. while true do
  2.     local event, sender, message, protocol = os.pullEvent("rednet_message")
  3.     if protocol == "kek" then
  4.       print("ID: " .. sender .. " M: " .. tostring(message) .. " P: " .. protocol)
  5.       local logFile = fs.open("kek.log", "a")
  6.       fs.write("ID: " .. sender .. " M: " .. tostring(message) .. " P: " .. protocol)
  7.       fs.close()
  8.     end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement