From 04bf86c649fda7abf8b4a92d372eb2dfc45e9ebe Mon Sep 17 00:00:00 2001 From: Freeman Date: Thu, 16 Mar 2023 23:17:42 +0100 Subject: [PATCH] matterbridge support --- commands.lua | 3 +++ mod.conf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/commands.lua b/commands.lua index b091b4e..9303c7e 100644 --- a/commands.lua +++ b/commands.lua @@ -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", { diff --git a/mod.conf b/mod.conf index 420e405..c189595 100644 --- a/mod.conf +++ b/mod.conf @@ -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 \ No newline at end of file