需要 Fabric API 和 Cloth Config API。
货币可由钻石配置为任意物品。
基于钻石的基础经济系统。使用 "/diamonds"(可在配置中更改)命令及其以下子命令:
-
balance [可选:玩家] - 告知用户该玩家(默认为自身)拥有多少钻石
-
buy price [物品] - 告知用户物品的购买价格
-
buy [物品] [可选:数量] - 购买 [数量(默认为 1)] [物品]
-
deposit [可选:数量] - 从背包中存入 [数量(默认无上限)] 金额
-
deposit hand [可选:数量] - 从手中持有的物品背包中存入 [数量(默认无上限)] 金额
-
deposit [物品] [可选:数量] - 从 [物品] 的背包中存入 [数量(默认无上限)] 金额
-
sell price [物品] - 告知用户物品的出售价格
-
sell hand [可选:数量] - 出售手中持有的 [数量(默认为 1)] 个该物品
-
sell [物品] [可选:数量] - 出售 [数量(默认为 1)] 个 [物品]
-
send [玩家] [数量] - 从你的账户扣除 [数量] 钻石并添加到 [玩家] 的账户
-
top [可选:数量] - 告知用户当前排名,以及谁拥有最多的钻石及其数量
-
withdraw [数量] - 从你的账户中提取 [数量] 钻石,以尽可能少的物品形式给出
-
withdraw [物品] [数量] - 从你的账户中以 [物品] 的形式提取 [数量]
仅操作员可用的子命令:
-
currency add [物品] [数量(售价)] [布尔值(可出售)] [数量(购买价)] [布尔值(可购买)] [布尔值(在货币列表中)] - 添加一种指定属性的物品类型货币。并对货币列表进行排序
-
currency remove [物品] - 将 [物品] 作为货币移除。并对货币列表进行排序
-
currency sortList - 对货币列表进行排序,在手动修改 diamondeconomy.sqlite 文件后运行
-
currency set buyValue [数量] - 将购买价设置为 [数量],如果该物品在货币列表中,则也将售价设置为 [数量]。并对货币列表进行排序
-
currency set sellValue [数量] - 将售价设置为 [数量],如果该物品在货币列表中,则也将购买价设置为 [数量]。并对货币列表进行排序
-
currency set canBuy [布尔值] - 如果为 true,允许玩家购买该物品。并对货币列表进行排序
-
currency set canSell [布尔值] - 如果为 true,允许玩家出售该物品。并对货币列表进行排序
-
currency set inCurrencyList [布尔值] - 如果为 true,允许对该货币进行存款、取款、购买和出售操作。同时还将购买价设置为与售价相同。并对货币列表进行排序
-
modify [玩家] [数量] - 修改玩家的金钱数量为 [数量]
-
set [玩家] [数量] - 将玩家的钻石数量设置为 [数量]
REQUIRES FABRIC API AND CLOTH CONFIG API
Currency is configurable from a diamond to any item.
Basic economy using diamonds. Uses the "/diamonds" (can be changed in config) command along with the following subcommands
-
balance [Optional: player] - tells user how many diamonds the player (defaults to self) has
-
buy price [item] - tells user buy price of item
-
buy [item] [Optional: int] - buys [int (default 1)] [item]
-
deposit [Optional: int] - deposits [int (defaults to no cap)] money from inventory
-
deposit hand [Optional: int] - deposits [int (defaults to unlimited)] money from inventory of the item in hand
-
deposit [item] [Optional: int] - deposits [int (defaults to unlimited)] money from inventory of [item]
-
sell price [item] - tells user sell price of item
-
sell hand [Optional: int] - sells [int (default 1)] of the item in hand
-
sell [item] [Optional: int] - sells [int (default 1)] [item]
-
send [player] [int] - takes [int] diamonds form your account and adds them to [player]'s account
-
top [Optional: int] - tells user current rank along with who has the most diamonds and how many
-
withdraw [int] - withdraws [int] from your account in the fewest items possible
-
withdraw [item] [int] - withdraws [int] from your account in the form of [item]
Operator only subcommands:
-
currency add [item] [int (sellValue)] [boolean (canSell)] [int (buyValue)] [boolean (canBuy)] [boolean inCurrencyList] - adds a currency of type item with the specified stats. sorts the currency list
-
currency remove [item] - removes [item] as a currency. sorts the currency list
-
currency sortList - sorts the currency list, run after manually changing the diamondeconomy.sqlite file
-
currency set buyValue [int] - sets the buy price to [int], and the sell price to [int] if inCurrencyList. sorts the currency list
-
currency set sellValue [int] - sets the sell price to [int], and the buy price to [int] if inCurrencyList. sorts the currency list
-
currency set canBuy [boolean] - if true, allows player to buy item. sorts the currency list
-
currency set canSell [boolean] - if true, allows player to sell item. sorts the currency list
-
currency set inCurrencyList [boolean] - if true, allows currency to be deposited, withdrawn, bought, and sold. also sets the buy price to the sell price. sorts the currency list
-
modify [players] [int] - modifies players money by [int]
-
set [players] [int] - sets players diamonds to [int]
评论 0
登录后参与评分
还没有评论,来抢沙发吧