Перейти к содержимому
Mineforgian

Fabric-Economy

A Minecraft Fabric compatible economy API

Загрузки
1K
Подписчики
4
Обновлён
8 января 2025 г.
Лицензия
MIT

Опубликован 29 октября 2024 г.

Исходный код

A Server-side Minecraft Fabric common compatible economy API

It provides a monetary economy system for Minecraft. If you are a developer, you can use it as a lib to use.

It will take over the economic system of Enclosure and ServerShop, and provide ENCLOSURE provides a toll system created by the territory

Text Placeholder API

Compatible with Text Placeholder API, you can use %eco:balance% to get the player's balance

Player Commands

The following commands are available for players:

  • /balance
    Check the current player's balance.

  • /balance <player_name>
    Check the balance of a specified player.

  • /money
    Display the current currency information.

  • /money <player_name>
    Display the currency information of a specified player.

  • /pay <player_name> <amount>
    Pay a specified amount of currency to a specified player.

  • /baltop
    View the ranking of players with the highest currency balances.

  • /eco store <item_amount>
    Deposit a specified amount of currency items.

  • /eco withdraw <amount>
    Withdraw a specified amount of currency.

Admin Commands

Administrators can use the following commands to manage the economic system:

  • /eco register <amount>
    Register the items on your hand into currency.

  • /eco unregister
    Cancel the currency registration of the current hand

  • /eco <player_name> add <amount>
    Add a specified amount of currency to a specified player.

  • /eco <player_name> remove <amount>
    Remove a specified amount of currency from a specified player.

  • /eco <player_name> set <amount>
    Set the currency amount for a specified player.

  • /eco execute (Number>=condition) "run_command" true|false Execute conditional command (Text %player% to place player name)

  • /eco sign (Number>=condition) "run_command" true|false Get Execute conditional command sign

一个 Minecraft Fabric 的通用经济 API

它为 Minecraft 提供了一个货币经济系统。如果您是开发者,可以将其用作库。

它将接管 EnclosureServerShop 的经济系统, 并为 Enclosure 提供了一个领地创建的收费系统

玩家命令

玩家可以使用以下命令:

  • /balance
    检查当前玩家的余额。

  • /balance <player_name>
    检查指定玩家的余额。

  • /money
    显示当前货币信息。

  • /money <player_name>
    显示指定玩家的货币信息。

  • /pay <player_name> <amount>
    向指定玩家支付指定金额的货币。

  • /baltop
    查看拥有最高货币余额的玩家排名。

  • /eco store <item_amount>
    存入指定数量的货币物品。

  • /eco withdraw <amount>
    提取指定数量的货币。

管理员命令

管理员可以使用以下命令来管理经济系统:

  • /eco register <amount>
    将手上的物品注册为货币。

  • /eco unregister
    取消注册当前手上的货币注册。

  • /eco <player_name> add <amount>
    向指定玩家添加指定数量的货币。

  • /eco <player_name> remove <amount>
    从指定玩家那里移除指定数量的货币。

  • /eco <player_name> set <amount>
    设置指定玩家的货币数量。

  • /eco execute (Number>=condition) "run_command" true|false 执行条件命令 (文本 %player% 代替玩家名称)

  • /eco sign (Number>=condition) "run_command" true|false 获取执行条件命令的告示牌

Ченджлог

0.1.3Релиз1.21, 1.21.1 · 8 января 2025 г.

change log

  • Changed MOD_ID to fabric_economy
  • Added expand subcommand to Enclosure (yes, you can now use /res expand )

更改日志 ==

  • 修改了MOD_ID为fabric_economy
  • 对Enclosure魔改添加了expand子命令(是的, 你现在可以使用/res expand <领地名称> <距离>)
0.1.2Релиз1.21, 1.21.1 · 5 ноября 2024 г.

Update Log

English

  • Add support for Text Placeholder API variable %eco:balance%
  • Conditional command (sign use) /eco execute (Number>=condition) "run_command" true|false
  • Get sign /eco sign (Number>=condition) "run_command" true|false

中文

  • 添加支持Text Placeholder API变量%eco:balance%
  • 条件命令(sign使用) /eco execute (Number>=condition) "run_command" true|false
  • 获取告示牌 /eco sign (Number>=condition) "run_command" true|false
0.1.1Релиз1.21, 1.21.1 · 30 октября 2024 г.

Update Log

English

  • No longer use hardcoded language
  • Added support for zh_cn and en_us
  • Added Chinese translation files for ServeShop

中文

  • 不再使用硬编码语言
  • 添加了支持zh_cn和en_us
  • 增加了ServeShop的中文翻译文件

Комментарии

Загружаем…