Skip to content

Commit

Permalink
chore: update tooth.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Feb 18, 2024
1 parent 5f11db9 commit 59cc649
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 27 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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
}
```
29 changes: 15 additions & 14 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 // 转账税率
}
```
3 changes: 0 additions & 3 deletions src/Plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "$";

Expand All @@ -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;
Expand All @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions tooth.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
},
Expand Down

0 comments on commit 59cc649

Please sign in to comment.