mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2024-12-23 06:32:25 +01:00
beerchat.on_channel_message to broadcast
This commit is contained in:
parent
e6ea58d7c2
commit
086085beca
@ -112,8 +112,8 @@ function emeraldbank.transfer_emeralds(player1, player2, num)
|
|||||||
if core.get_modpath("yl_matterbridge") then
|
if core.get_modpath("yl_matterbridge") then
|
||||||
yl_matterbridge.send_to_bridge("EMERALDBANK", msg)
|
yl_matterbridge.send_to_bridge("EMERALDBANK", msg)
|
||||||
end
|
end
|
||||||
if core.get_modpath("beerchat") and beerchat.send_on_channel then
|
if core.get_modpath("beerchat") then
|
||||||
beerchat.send_on_channel({name="EMERALDBANK", channel=beerchat.main_channel_name, message=msg})
|
beerchat.on_channel_message(beerchat.main_channel_name, "EMERALDBANK", msg)
|
||||||
end
|
end
|
||||||
emeraldbank.add_emeralds(player1, -num)
|
emeraldbank.add_emeralds(player1, -num)
|
||||||
emeraldbank.add_emeralds(player2, num)
|
emeraldbank.add_emeralds(player2, num)
|
||||||
|
Loading…
Reference in New Issue
Block a user