Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- while true do
- s = peripheral.wrap("bottom")
- event, username = os.pullEvent("player")
- if(event == "player" and username == "wasliebob") then
- s.say("Welcome Wasliebob", 5)
- redstone.setOutput("right", true)
- sleep(2)
- redstone.setOutput("right", false)
- os.run({}, "startup")
- else if(event == "player" and username == "99kevin11") then
- s.say("Welcome Kevin", 5)
- redstone.setOutput("right", true)
- sleep(2)
- redstone.setOutput("right", false)
- os.run({}, "startup")
- else
- s.say("You are not allowed in here be happy that i didnt send my turtles at you!", 5)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment