本模组添加了一个简单的商店,用于买卖物品。可通过使用 /shop 命令访问该商店。商店系统包含多种功能,可通过不同的子命令进行管理:
- /shop:访问商店界面的主命令。用户可以浏览可用物品,或根据其权限以不同方式与商店进行交互。

- /shop edit:允许管理员(权限等级为 2 或更高的用户)编辑商店库存。这包括向商店添加或移除物品。



-
/shop load:管理员可以从文件加载商店配置,从而轻松重置或更新商店内容。
-
/shop save:此命令将商店的当前状态保存到文件中,保留会话期间所做的任何更改。
-
/shop set:此命令允许管理员设置商店中物品的价格。通过使用 /shop set,您可以指定物品、买入价格和卖出价格,以调整商店对该物品的交易方式。
示例:/shop set <item> <buyprice> <sellprice>
此处,<item> 代表要出售的物品,<buyprice> 是玩家购买该物品需支付的价格,<sellprice> 是玩家将物品卖给商店时获得的金额。
-
/shop setHand:设置玩家手中当前所持物品的价格。这是使用 /shop set 的一种更快捷的替代方式。
-
/price:玩家可以使用 /price <item> 检查物品价格,或使用 /price 检查手中物品的价格。
-
/buy:让玩家从商店购买物品。玩家可以指定想要购买的数量。
-
/sell:允许玩家将物品卖回商店,如有需要可指定数量。
此外,该模组还包含一个拍卖行:

- /auction create <price>:当在命令中指定价格时,用于对手中物品发起拍卖的命令;如果未指定价格,则会弹出一个对话框,要求输入价格和物品。

管理玩家账户可使用以下命令:
-
/pay:允许玩家使用 /pay <recipient> <amount> 向其他玩家转账。
-
/balance:此命令让玩家查看自己的余额,或让管理员查看并修改其他玩家的余额。它包含诸如 /balance load、/balance save 和 /balance set 等子命令。
-
/balance list:打开一个 GUI,显示玩家列表及其余额。点击某位玩家即可设置其余额。


此商店和拍卖系统设计得简单而灵活,为玩家和管理员提供高效管理游戏内经济所需的工具。
This mod adds a simple shop for selling and buying items. It can be accessed by using the /shop command. The shop system includes several functionalities that can be managed through different subcommands:
- /shop: The main command to access the shop interface. Users can browse available items or interact with the shop in various ways depending on their permissions.

- /shop edit: Allows admins (users with permission level 2 or higher) to edit the shop's inventory. This includes adding or removing items from the shop.



-
/shop load: Admins can load the shop's configuration from a file, making it easy to reset or update the shop's content.
-
/shop save: This command saves the current state of the shop to a file, preserving any changes made during the session.
-
/shop set: This command allows admins to set the prices for items in the shop. By using /shop set, you can specify the item, buy price, and sell price to adjust how the shop will trade that item.
Example: /shop set <item> <buyprice> <sellprice>
Here, <item> represents the item to be sold, <buyprice> is the price players must pay to buy the item, and <sellprice> is the amount players will receive when selling the item to the shop.
-
/shop setHand: Sets the price for the item currently held in the player's hand. This is a quicker alternative to using /shop set.
-
/price: Players can check the price of an item using /price <item> or /price to check the price of the item in their hand.
-
/buy: Lets players purchase items from the shop. Players can specify the quantity they want to buy.
-
/sell: Allows players to sell items back to the shop, specifying the quantity if needed.
Additionally, the mod includes an auctionhouse:
- /auction: A command for browsing item auctions

- /auction create <price>: A command to start an auction for an item in hand when specifying the price in the command, if the price is not specified, a dialog appears which needs a price and item insertion

For managing the account of the players you can use these commands:
-
/pay: Allows players to transfer money to others using /pay <recipient> <amount>.
-
/balance: This command lets players check their balance, or for admins to check and modify other players' balances. It includes subcommands like /balance load, /balance save, and /balance set.
-
/balance list: Opens a gui with a list of players and their balances. If you click on a player, you can set their balance.


This shop and auction system is designed to be simple yet flexible, providing both players and admins with the tools they need to manage in-game economies efficiently.
评论 0
登录后参与评分
还没有评论,来抢沙发吧