Skip to content

Commit

Permalink
Update custom_items
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx committed Nov 13, 2023
1 parent 03a8938 commit e2f6b2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_items/message_block.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ minetest.register_node("bls:digilines_message_block", {
if channel ~= meta:get_string("channel") then return end
if type(msg) ~= "table" or type(msg.name) ~= "string" or type(msg.msg) ~= "string" then return end
if not minetest.check_player_privs(owner, {shout=true}) then return end
minetest.registered_chatcommands.msg.func(owner, msg.name.." "..msg.msg:gsub("[\r\n]", " "))
local param = (msg.name.." "..msg.msg):gsub("[\r\n]", " ")
minetest.registered_chatcommands.msg.func(owner, param)
end,
},
},
Expand Down

0 comments on commit e2f6b2c

Please sign in to comment.