mirror of
https://github.com/minetest-mods/areas.git
synced 2025-12-04 03:05:19 +01:00
This commit is contained in:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user