This commit is contained in:
Joseph Pickard 2016-01-10 13:56:11 -05:00
parent 7a400bb1b9
commit 2dc928a7bf
1 changed files with 6 additions and 2 deletions

View File

@ -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