https://forum.cuberite.org/thread-2445.html
该插件在游戏货币中创建。不是经济模型。经济模型 您可以使用插件
Vesion 20160821
你能做什么:
- 向其他玩家汇款。
- 通过标志出售物品(创建商店)。
- 通过标志告别项目。
- 使用宝箱作为商店来存放要出售
的物品 - 禁用物品以按物品 ID
再见/出售 - 更新玩家的余额
插件命令:
/money balance - 显示个人余额
/money pay <玩家姓名> <金额> - 向玩家
汇款 更新余额:
/money set
/money set balance <玩家姓名> <金额> - 设置余额 100。(/money s b DrMasik 100)
/money set encBalance <玩家名称> <金额> - 放大 blanace 100。(/money s e DrMasik 100)
/money set decBalance <玩家名称> <金额> - 减少 blanace 100。(/money s d DrMasik 100)
宝箱命令:
/money mark - 打开宝箱标记 (/money m)
/money mc - 关闭宝箱标记操作
/money list - 列出标记的宝箱 (/money l)
/money chest delete <id> - 删除宝箱 <id> (/money c d <id>)
添加权限:
money.set - 访问“/money set”命令。
如何出售商品:
- 您必须知道商品 ID
- 取符号
-- 在第一行中输入“[购买]”
-- 在第二行中输入商品 ID
-- 在第三行中输入金额和价格为“100:30”
-- 在第四行中输入您的昵称。如果昵称错误 - 标志将被删除。
[Image: 123.png]
API 函数:
api_setBalance(<PlayerName>, <CurrenyCodeName>, <Sum>) - 将 pplayer balans 设置为 <Sum>。
api_getBalance(<PlayerName>, <CurrenyName>) - 按货币名称获取玩家余额。
简单功能如何使用
code :
function commandGUIGetBalance()
local status, value = cPluginManager:CallPlugin("Money", "api_getBalance", "DrMasik", "Credits")
if status == true then
console_log("TRUE")
console_log(value)
else
console_log("FALSE")
console_log("Returned error code: ".. value)
end
end
function commandGUISetBalance()
local status, value = cPluginManager:CallPlugin("Money", "api_setBalance", "DrMasik", "c", 17365)
if status == true then
console_log("TRUE")
console_log(value)
else
console_log("FALSE")
console_log("Returned error code: ".. value)
end
end
源码
下载