Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local playerDetector = peripheral.find("playerDetector")
- local chatBox = peripheral.find("chatBox")
- if playerDetector == nil then
- error("Aucun dététeur de joueurs disponible.")
- return
- end
- if chatBox == nil then
- error("Aucun chatBox disponible.")
- return
- end
- local event, username, dimension = os.pullEvent("playerJoin")
- local messageS = {
- { text = "Bienvenue " .. username .. " sur le serveur FTB StoneBlock 3 entre coupin ! :eyes:" }
- }
- local json = textutils.serialiseJSON(message)
- local success = chatBox.sendFormattedMessage(json, "TsykiBase", nil)
Advertisement
Add Comment
Please, Sign In to add comment