mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2024-12-23 06:32:25 +01:00
matterbridge support
This commit is contained in:
parent
e664688d3f
commit
04bf86c649
@ -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", {
|
||||
|
2
mod.conf
2
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
|
Loading…
Reference in New Issue
Block a user