From 59cc649c99d5b8690e714e3594fd466fedba6d78 Mon Sep 17 00:00:00 2001 From: ShrBox Date: Sun, 18 Feb 2024 17:48:26 +0800 Subject: [PATCH] chore: update tooth.json --- README.md | 17 +++++++++-------- README.zh.md | 29 +++++++++++++++-------------- src/Plugin.cpp | 3 --- tooth.json | 4 ++-- 4 files changed, 26 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 29668e6..ea9eb91 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,11 @@ lip install github.com/LiteLDev/LegacyMoney # Usage | Command | Description | Permission | -|-----------------------------|------------------------------------|------------| -| /money query(s) [player] | Query your/other players's balance | Player/OP | -| /money pay(s) player amount | Transfer money to a player | Player | -| /money set(s) player amount | Set player's balance | OP | -| /money add(s) player amount | Add player's balance | OP | +| --------------------------- | ---------------------------------- | ---------- | +| /money query(s) [player] | Query your/other players's balance | Player/OP | +| /money pay(s) player amount | Transfer money to a player | Player | +| /money set(s) player amount | Set player's balance | OP | +| /money add(s) player amount | Add player's balance | OP | | /money reduce player amount | Reduce player's balance | OP | | /money hist | Print your running account | Player | | /money purge | Clear your running account | OP | @@ -28,9 +28,10 @@ lip install github.com/LiteLDev/LegacyMoney ```jsonc { + "currency_symbol": "$", + "def_money": 0, // Default money value + "enable_commands": true, "language": "en", - "def_money": 0, // Default money - "pay_tax": 0.0, - "currency_symbol" "$" + "pay_tax": 0.0 } ``` diff --git a/README.zh.md b/README.zh.md index 23369de..b468156 100644 --- a/README.zh.md +++ b/README.zh.md @@ -13,24 +13,25 @@ lip install github.com/LiteLDev/LegacyMoney # 用法 -| 命令 | 说明 | 权限等级 | -|-------------------------|-------------|-------| -| /money query(s) [玩家] | 查询你自己/他人的余额 | 玩家/OP | -| /money pay(s) <玩家> <数量> | 转账给某人 | 玩家 | -| /money set(s) <玩家> <数量> | 设置某人的余额 | OP | -| /money add(s) <玩家> <数量> | 添加某人的余额 | OP | -| /money reduce(s) <玩家> <数量> | 减少某人的余额 | OP | -| /money hist | 打印流水账 | 玩家 | -| /money purge | 清除流水账 | OP | -| /money top | 余额排行 | 玩家 | +| 命令 | 说明 | 权限等级 | +| ------------------------------ | --------------------- | -------- | +| /money query(s) [玩家] | 查询你自己/他人的余额 | 玩家/OP | +| /money pay(s) <玩家> <数量> | 转账给某人 | 玩家 | +| /money set(s) <玩家> <数量> | 设置某人的余额 | OP | +| /money add(s) <玩家> <数量> | 添加某人的余额 | OP | +| /money reduce(s) <玩家> <数量> | 减少某人的余额 | OP | +| /money hist | 打印流水账 | 玩家 | +| /money purge | 清除流水账 | OP | +| /money top | 余额排行 | 玩家 | # 配置文件 ```jsonc { - "language": "en", // 语言,改为zh-cn为中文 - "def_money": 0, // 默认金钱数 - "pay_tax": 0.0, // 转账税率 - "currency_symbol": "$" // 货币符号 + "currency_symbol": "$", // 货币符号 + "def_money": 0, // 玩家初始金额 + "enable_commands": true, // 启用money指令 + "language": "en", // 语言,改为zh_CN启用中文 + "pay_tax": 0.0 // 转账税率 } ``` diff --git a/src/Plugin.cpp b/src/Plugin.cpp index 86fc7f2..6eae4ad 100644 --- a/src/Plugin.cpp +++ b/src/Plugin.cpp @@ -30,7 +30,6 @@ namespace Settings { std::string language = "en"; int def_money = 0; float pay_tax = 0.0; -bool enable_ranking = true; bool enable_commands = true; std::string currency_symbol = "$"; @@ -39,7 +38,6 @@ nlohmann::json globaljson() { json["language"] = language; json["def_money"] = def_money; json["pay_tax"] = pay_tax; - json["enable_ranking"] = enable_ranking; json["enable_commands"] = enable_commands; json["currency_symbol"] = currency_symbol; return json; @@ -49,7 +47,6 @@ void initjson(nlohmann::json json) { JSON1("language", language); JSON1("def_money", def_money); JSON1("pay_tax", pay_tax); - JSON1("enable_ranking", enable_ranking); JSON1("enable_commands", enable_commands); JSON1("currency_symbol", currency_symbol); } diff --git a/tooth.json b/tooth.json index a4ffb29..a239b63 100644 --- a/tooth.json +++ b/tooth.json @@ -1,7 +1,7 @@ { "format_version": 2, "tooth": "github.com/LiteLDev/LegacyMoney", - "version": "0.3.0", + "version": "0.3.1", "info": { "name": "LegacyMoney", "description": "LLMoney, but adapted to LeviLamina", @@ -13,7 +13,7 @@ "economy" ] }, - "asset_url": "https://github.com/LiteLDev/LegacyMoney/releases/download/v0.3.0/LegacyMoney-windows-x64.zip", + "asset_url": "https://github.com/LiteLDev/LegacyMoney/releases/download/v0.3.1/LegacyMoney-windows-x64.zip", "prerequisites": { "github.com/LiteLDev/LeviLamina": "0.8.x" },