new dev priv for dev commands

This commit is contained in:
LoneWolfHT 2020-06-22 21:59:18 -07:00
parent 752c9a4eff
commit 2e89e746cf

View File

@ -3,6 +3,7 @@ vkore = {
game_mode = "play", -- dev, play
world_size = 3200,
},
dev_priv = "voxel_knights_dev"
}
local dirs = {
@ -47,6 +48,12 @@ function vkore.scan_flood(pos, range, func)
end
end
minetest.register_privilege("voxel_knights_dev", {
description = "Allows usage of dev commands",
give_to_singleplayer = false,
give_to_admin = true,
})
-- add 'all' group to all registered nodes for use with group-based builtin functions like find_nodes_in_area()
minetest.register_on_mods_loaded(function()
for name, def in pairs(minetest.registered_nodes) do