diff --git a/chatcommands.lua b/chatcommands.lua index 8bd132a..3262837 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -25,14 +25,14 @@ factions_chat = {} ------------------------------------------------------------------------------- function factions_chat.init() - minetest.register_privilege("faction_user", + minetest.register_privilege("factions_user", { description = "this user is allowed to interact with faction mod", give_to_singleplayer = true, } ) - minetest.register_privilege("faction_admin", + minetest.register_privilege("factions_admin", { description = "this user is allowed to create or delete factions", give_to_singleplayer = true, @@ -43,7 +43,7 @@ function factions_chat.init() { params = " .. ", description = "faction administration functions", - privs = { faction_user=true }, + privs = { factions_user=true }, func = factions_chat.cmdhandler, } ) @@ -52,7 +52,7 @@ function factions_chat.init() { params = "text", description = "send message to all factions", - privs = { faction_user=true }, + privs = { factions_user=true }, func = factions_chat.allfactions_chathandler, } ) @@ -61,7 +61,7 @@ function factions_chat.init() { params = " text", description = "send message to a specific faction", - privs = { faction_user=true }, + privs = { factions_user=true }, func = factions_chat.chathandler, } )