forked from Mirrorlandia_minetest/emeraldbank
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
|
if core.get_modpath("irc") and irc.saysec then
|
||||||
irc.saysec(name.." has transferred "..num.." emeralds to "..playername2)
|
irc.saysec(name.." has transferred "..num.." emeralds to "..playername2)
|
||||||
end
|
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(player1, -num)
|
||||||
emeraldbank.add_emeralds(player2, num)
|
emeraldbank.add_emeralds(player2, num)
|
||||||
core.sound_play("cash", {
|
core.sound_play("cash", {
|
||||||
|
2
mod.conf
2
mod.conf
@ -1,5 +1,5 @@
|
|||||||
name = emeraldbank
|
name = emeraldbank
|
||||||
depends = mcl_core, mcl_sounds, mcl_inventory, mcl_formspec, mcl_title
|
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.
|
description = Keep your Emeralds in a bank! And trade with shops.
|
||||||
supported_games = mineclone2, mineclone5
|
supported_games = mineclone2, mineclone5
|
Loading…
Reference in New Issue
Block a user