register the actually set priv when it is missing

This commit is contained in:
Luke aka SwissalpS 2024-09-16 15:51:45 +02:00
parent f01e90e8eb
commit f99dcfa57c

@ -8,7 +8,7 @@ factions.version = 2
minetest.register_on_mods_loaded(function() minetest.register_on_mods_loaded(function()
if not minetest.registered_privileges[factions.priv] then if not minetest.registered_privileges[factions.priv] then
minetest.register_privilege("playerfactions_admin", { minetest.register_privilege(factions.priv, {
description = S("Allow the use of all playerfactions commands"), description = S("Allow the use of all playerfactions commands"),
give_to_singleplayer = false give_to_singleplayer = false
}) })