diff --git a/mods/ITEMS/mcl_beds/functions.lua b/mods/ITEMS/mcl_beds/functions.lua index 8b64ffb42b..9def86870e 100644 --- a/mods/ITEMS/mcl_beds/functions.lua +++ b/mods/ITEMS/mcl_beds/functions.lua @@ -435,6 +435,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) end if fields.chatsubmit and fields.chatmessage ~= "" then + if not minetest.check_player_privs(player,"shout") then + minetest.chat_send_player(player:get_player_name(),S("You are missing the 'shout' privilege! It's required in order to talk in chat...")) minetest.chat_send_all(minetest.format_chat_message(player:get_player_name(), fields.chatmessage)) end