摘要
此插件允许玩家每天首次登录时获得一个“半随机”的奖励。 只需编辑位于 plugin/GiftOfTheDay 目录下的 gifts.yml 文件,即可更改物品、堆叠数量以及概率。 最初开发此插件是为了奖励我的服务器玩家(因为他们太棒了!:D),我决定将其与 Minecraft 社区分享 :).
gift.yml 结构
- Gifts:
- 'rollChance':
- 'item id':
- amount: 你想要给予的物品数量
- distribution: 可以是 'linear'(线性)、'exponential'(指数)或 'normal'(正态)。其他任何值将被视为 'linear'
你可以在此处查看完整的示例 这里
关于分布方法
- linear:常规分布。你获得指定数量的物品的几率与你指定的数量成正比
- normal:“高斯”分布。大多数情况下,你会收到接近你指定数量的物品。但偶尔你可能会收到非常不同的数量。
- exponential:你至少会收到指定数量的物品。你也可以收到更多。
- invertexponential:你经常会收到指定数量的物品。你也可以收到更多,但几率会降低。
权限
- gotd.admin:允许使用 resegift 和 regift 命令
- gotd.receive:允许接收礼物(目前尚不可用)
命令
- /regift <player>:向指定玩家赠送另一份礼物
- /resegift <player>:重置指定玩家的最后领取礼物的日期
计划中的功能
- 目前没有
已知问题
- 我认为指数分布可以得到改进。
Summary
This plugin allows players to receive a "semi-random" reward on first login of the day. Items, stack and rate can be changed simply by editing the gifts.yml located in plugin/GiftOfTheDay. Originally developped in order to rewards players of my server (for being so great ! :D), I decided to share it with the minecraft community :).
gift.yml structure
- Gifts:
- 'rollChance':
- 'item id':
- amount: How many items you want to give
- distribution: Either 'linear' or 'exponential' or 'normal'. Everything else will be considered as 'linear'
You can have a full example here
About distribution methods
- linear: Regular distribution. You have as many chances to get the object as the amount you specified
- normal: "Gaussian" distribution. Most of the time, you'll receive an amount close to the one you specified. But from time to time you might receive a very different quantity.
- exponential: You receive at least the specified amount. You can also receive more.
- invertexponential: Very often, you'll receive the specified amount. You can also receive more but chance decrease.
Permissions
- gotd.admin: Allow to use both resegift and regift command
- gotd.receive: Allow to receive the gift (doesn't work for the moment)
Commands
- /regift <player>: Give another gift to specified player
- /resegift <player>: Reset the last gift date for specified player
Planned features
- None for the moments
Known issues
- Exponential distribution can be improved in my opinion.
下载 GiftOfTheDay
下载 GiftOfTheDay
下载 GiftOfTheDay
下载 GiftOfTheDay
下载 GiftOfTheDay
下载 GiftOfTheDay
下载 GiftOfTheDay
下载 GiftOfTheDay
下载 GiftOfTheDay
下载 GiftOfTheDay
V 1.1
- 修复:当列表中仅有一件物品时,该物品将作为礼物发放。
----
V 1.0
- 插件首次发布。
- 支持并兼容 PermissionBukkit(其他权限插件的情况未知)。别忘了将权限 'gotd.receive' 设置为 true ;)
----
V 0.4b
- 修复:当背包已满时,礼物将被丢弃在地面上。
- 支持权限系统!
- 新增两个管理员命令:resetgift 和 regift
----
V 0.3b
- 修复:确保至少发放一件物品。
- 尝试使用更优的分配算法。
- 实现了逆指数分布(距离指定值越远的物品,被选中的几率越低)。
----
V 0.21b
- 修复:选择正确的物品 ID (itemid)。
----
V 0.2b
- 添加了登录时的消息提示 - 优化了礼物的随机化方案
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
一个功能丰富、完全动画化的箱子插件,适用于 Paper 1.21.x,支持 IA、Vault、PlaceholderAPI 和 Citizens
插件
Vault2.0 是什么? Vault2.0 是一个经济插件,它注册了一个兼容 Vault API 的 Bukkit Economy 服务,允许其他插件(商店、等级等)使用货币而无需依赖原始的 Vault.jar。它包含菜单、支付/收费流程
插件
一款旨在与 Multiverse-Core 紧密结合的库存管理插件
插件
一个现代且高度可配置的 Essentials 插件,类似于 EssentialsX
插件
城镇现在可以要求建造具有特定功能的建筑
PressureWarp - 当你与压力板或按钮交互时,将你传送至指定位置
评论 0
登录后参与评分
还没有评论,来抢沙发吧