BuyShards
一个用于 UltimateDonutSMP 的插件,允许玩家通过一个简单的菜单使用游戏内货币购买碎片。
玩家输入 /buyshards,点击套餐,价格将从其余额中扣除。默认情况下,1,000 货币可购买 100 碎片。
功能
/buyshards 打开一个整洁的箱子菜单,显示碎片套餐
- 完全可配置的价格(默认:每 100 碎片 1,000 货币)
- 可配置的套餐:每个按钮的数量、图标和槽位
- 在菜单中显示玩家的余额,并在每次购买后刷新
- 如果无法交付碎片,自动退款
- 所有消息、菜单标题以及物品名称/描述均可编辑(支持
& 颜色代码)
/buyshards reload 无需重启即可应用配置更改
依赖
- Paper 26.2
- UltimateDonutSMP 1.5.1
- Vault(或 VaultUnlocked)
命令与权限
| 命令 |
权限 |
默认 |
/buyshards |
buyshards.use |
所有人 |
/buyshards reload |
buyshards.reload |
管理员 |
设置
- 将
BuyShards.jar 和 Vault 放入你的 plugins 文件夹。
- 重启服务器。
- 打开
plugins/BuyShards/config.yml,将 give-command 设置为你服务器用于发放碎片的控制台命令。%player% 代表购买者,%amount% 代表碎片数量。
money-per-100-shards: 1000
give-command: "addshards %player% %amount%"
套餐成本 = 数量 ÷ 100 × money-per-100-shards,因此 500 碎片的成本为 5,000。
重要提示
货币通过 Vault 扣除。碎片通过运行 give-command 中的控制台命令发放。在向玩家开放商店之前,请在控制台中测试该命令。如果失败,买家将自动获得退款,并记录警告日志。
免责声明
BuyShards 是一个非官方的社区插件,并非由 UltimateDonutSMP 开发者制作或与其关联。
BuyShards
An addon for UltimateDonutSMP that lets players buy shards with in-game money through a simple menu.
Players type /buyshards, click a package, and the price is taken from their balance. By default, 1,000 money buys 100 shards.
Features
/buyshards opens a clean chest menu with shard packages
- Fully configurable price (default: 1,000 money per 100 shards)
- Configurable packages: amount, icon and slot for each button
- Shows the player's balance in the menu and refreshes after every purchase
- Automatic refund if shards could not be delivered
- Every message, the menu title and the item names/lore are editable (
& colour codes)
/buyshards reload to apply config changes without a restart
Requirements
- Paper 26.2
- UltimateDonutSMP 1.5.1
- Vault (or VaultUnlocked)
Commands & permissions
| Command |
Permission |
Default |
/buyshards |
buyshards.use |
Everyone |
/buyshards reload |
buyshards.reload |
Operators |
Setup
- Put
BuyShards.jar and Vault in your plugins folder.
- Restart the server.
- Open
plugins/BuyShards/config.yml and set give-command to the console command your server uses to give shards. %player% is the buyer and %amount% is the number of shards.
money-per-100-shards: 1000
give-command: "addshards %player% %amount%"
Cost of a package = amount ÷ 100 × money-per-100-shards, so 500 shards cost 5,000.
Important
Money is taken through Vault. Shards are given by running the console command from give-command. Test that command from the console before opening the shop to players. If it fails, the buyer is refunded automatically and a warning is logged.
Disclaimer
BuyShards is an unofficial community addon and is not made by or affiliated with the UltimateDonutSMP developer.
评论 0
登录后参与评分
还没有评论,来抢沙发吧