matterbridge support

This commit is contained in:
Freeman 2023-03-16 23:17:42 +01:00
parent e664688d3f
commit 04bf86c649
2 changed files with 4 additions and 1 deletions

@ -44,6 +44,9 @@ core.register_chatcommand("pay", {
if core.get_modpath("irc") and irc.saysec then
irc.saysec(name.." has transferred "..num.." emeralds to "..playername2)
end
if core.get_modpath("yl_matterbridge") and yl_matterbridge.send_to_sec then
yl_matterbridge.send_to_sec("", name.." has transferred "..num.." emeralds to "..playername2)
end
emeraldbank.add_emeralds(player1, -num)
emeraldbank.add_emeralds(player2, num)
core.sound_play("cash", {

@ -1,5 +1,5 @@
name = emeraldbank
depends = mcl_core, mcl_sounds, mcl_inventory, mcl_formspec, mcl_title
optional_depends = irc
optional_depends = irc, yl_matterbridge
description = Keep your Emeralds in a bank! And trade with shops.
supported_games = mineclone2, mineclone5