forked from Mirrorlandia_minetest/emeraldbank
check irc.saysec func
This commit is contained in:
parent
d5117240db
commit
e664688d3f
@ -41,7 +41,7 @@ core.register_chatcommand("pay", {
|
|||||||
if bankemeralds1 >= num then
|
if bankemeralds1 >= num then
|
||||||
core.chat_send_player(name, S("Pay Successfully! You have transferred @1 Emeralds." , num) )
|
core.chat_send_player(name, S("Pay Successfully! You have transferred @1 Emeralds." , num) )
|
||||||
core.chat_send_player(playername2, S("Pay Successfully! You've gotten @1 Emeralds.", num) )
|
core.chat_send_player(playername2, S("Pay Successfully! You've gotten @1 Emeralds.", num) )
|
||||||
if core.get_modpath("irc") 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
|
||||||
emeraldbank.add_emeralds(player1, -num)
|
emeraldbank.add_emeralds(player1, -num)
|
||||||
|
7
init.lua
7
init.lua
@ -23,13 +23,6 @@ local modpath = core.get_modpath(core.get_current_modname())
|
|||||||
|
|
||||||
emeraldbank = {}
|
emeraldbank = {}
|
||||||
|
|
||||||
-- compat with irc mod fork
|
|
||||||
if core.get_modpath("irc") then
|
|
||||||
if not irc.saysec then
|
|
||||||
irc.saysec = irc.say
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local income_enabled = core.settings:get_bool("emeraldbank.income_enabled", true)
|
local income_enabled = core.settings:get_bool("emeraldbank.income_enabled", true)
|
||||||
|
|
||||||
if income_enabled then
|
if income_enabled then
|
||||||
|
Loading…
Reference in New Issue
Block a user