diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-07-12 19:10:26 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-07-12 19:10:26 -0400 |
commit | 57c18fce9569f68822fb2814044d71ec99bf49e7 (patch) | |
tree | 81d8e8e63057c7a9f74c5c3da09b87abe6e80bda /legacy.lua | |
parent | 65013863b2ae1205f08000c83bdc3b6c8fab5627 (diff) |
Make all admin checks use one table
Diffstat (limited to 'legacy.lua')
-rw-r--r-- | legacy.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,7 +5,7 @@ minetest.register_chatcommand("legacy_load_areas", { params = "<version>", description = "Loads, converts, and saves the areas from" .." a legacy save file.", - privs = {areas=true, server=true, privs=true}, + privs = {areas=true, server=true}, func = function(name, param) minetest.chat_send_player(name, "Converting areas...") local version = tonumber(param) @@ -86,7 +86,7 @@ end -- Checks if a node is owned by you function areas.isNodeOwner(pos, name) - if minetest.check_player_privs(name, {areas=true}) then + if minetest.check_player_privs(name, areas.adminPrivs) then return true end for id, area in pairs(areas:getAreasAtPos(pos)) do |