Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
kick is nil l think and so invis_requires_priv is also nil, so
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.check_player_privs(name, {interact=invis_requires_priv})==false
does the same as
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
not minetest.check_player_privs(name, {})
l think and checking for no privilege is always true l guess
how about this code?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local invis_requires_priv = "kick"
local privs = {[invis_requires_priv] = true}
if not minetest.check_player_privs(name, privs) then return false end
there's this function, you don't need to search for the player in the player list
http://dev.minetest.net/minetest.get_player_by_name