Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --#wrap peripherals
- local s = peripheral.wrap("top")
- --#make a whitelist
- local whitelist = {
- Batword = true,
- batword = false,
- }
- while true do
- local a, users = os.pullEvent("player")
- if users then --#make sure users isn't nil
- print("coucou")
- for _, user in ipairs( users ) do --#iterate through all the users
- print("coucou2")
- if whitelist[ user.name ] then --#if the user is on the whitelist
- print("bievenue")
- --#say stuff
- break --#exit the for loop early
- end
- end
- end
- sleep( 1 ) --#wait one second
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement