a guest Jul 24th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. minetest.override_item("default:cobble", {
  2.    after_place_node = function(pos, placer, itemstack, pointed_thing)
  3.       local player_name = placer:get_player_name()
  4.       local privs = minetest.get_player_privs(player_name)
  5.       if not privs['pr_regular'] == true then
  6.          privs['pr_regular'] = true
  7.          privs['pr_noob'] = false
  8.          minetest.set_player_privs(player_name, privs)
  9.          core.chat_send_player(player_name, '**Now your not a Noob! Your a Regular Player!**')
  10.       end
  11.    end,
  12. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand