mirror of
https://github.com/minetest-mods/areas.git
synced 2025-01-14 12:00: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)
|
||||
if minetest.get_modpath("worldedit") then
|
||||
return nil == playerName or minetest.check_player_privs(playerName, {worldedit = true});
|
||||
if minetest or minetest.get_modpath("worldedit") then
|
||||
if nil == playerName then
|
||||
return true;
|
||||
elseif minetest.check_player_privs(playerName, {worldedit = true}) then
|
||||
return true;
|
||||
end
|
||||
else
|
||||
return false;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user