mirror of
https://github.com/minetest-mods/areas.git
synced 2025-01-14 20:10:26 +01:00
This commit is contained in:
parent
7a400bb1b9
commit
2dc928a7bf
8
pos.lua
8
pos.lua
@ -119,8 +119,12 @@ minetest.register_chatcommand("area_pos", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
function areas.useWorldedit(playerName)
|
function areas.useWorldedit(playerName)
|
||||||
if minetest.get_modpath("worldedit") then
|
if minetest or minetest.get_modpath("worldedit") then
|
||||||
return nil == playerName or minetest.check_player_privs(playerName, {worldedit = true});
|
if nil == playerName then
|
||||||
|
return true;
|
||||||
|
elseif minetest.check_player_privs(playerName, {worldedit = true}) then
|
||||||
|
return true;
|
||||||
|
end
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user