Guest User

Untitled

a guest
Aug 23rd, 2012
37
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local privs = minetest.get_player_privs(player:get_player_name())
  2. print(dump(privs))
  3. local forbidden=0
  4. if privs["fly"] then forbidden = 1 end
  5. if privs["give"] then forbidden = 1 end
  6. if privs["teleport"] then forbidden = 1 end
  7. if privs["bring"] then forbidden = 1 end
  8. if privs["settime"] then forbidden = 1 end
  9. if privs["rollback"] then forbidden = 1 end
  10. if privs["server"] then forbidden = 1 end
  11. if privs["privs"] then forbidden = 1 end
  12. if privs["ban"] then forbidden = 1 end
  13. if not forbidden then return end
  14. print ("Illegal priviledges detected.")
  15. -- make a formspec here, display warnin message
  16. while true do
  17. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×