unbreakable blocks & set_player_privs won't?
1: How can i see if a node is unbreakable or have no drops?
node= minetest.get_node(pos)
node.?
cant find anything about it
2: It can set player privs without any problems, but to remove / revoke it, i have to restart the server before it disappear?
Tested in 0.4.12 / dev
local privs=minetest.get_player_privs(name)
if priv=="fly" then
privs.fly = true
privs.fantasticdrinks_fly = true
end
if priv=="fast" then
privs.fast = true
privs.fantasticdrinks_fast = true
end
minetest.set_player_privs(name, privs)
...
local privs=minetest.get_player_privs(name)
if priv=="fly" then
privs.fly = false
privs.fantasticdrinks_fly = false
end
if priv=="fast" then
privs.fast = false
privs.fantasticdrinks_fast = false
end
minetest.set_player_privs(name, privs)
node= minetest.get_node(pos)
node.?
cant find anything about it
2: It can set player privs without any problems, but to remove / revoke it, i have to restart the server before it disappear?
Tested in 0.4.12 / dev
local privs=minetest.get_player_privs(name)
if priv=="fly" then
privs.fly = true
privs.fantasticdrinks_fly = true
end
if priv=="fast" then
privs.fast = true
privs.fantasticdrinks_fast = true
end
minetest.set_player_privs(name, privs)
...
local privs=minetest.get_player_privs(name)
if priv=="fly" then
privs.fly = false
privs.fantasticdrinks_fly = false
end
if priv=="fast" then
privs.fast = false
privs.fantasticdrinks_fast = false
end
minetest.set_player_privs(name, privs)