MittelRandomEvents
让服务器上的每一分钟都值得期待。
链接
GitHub:
Discord:
简体中文链接:
QQ群: 1107921027
问题所在
你建造了地图,设计了玩法,配置了奖励。玩家加入,环顾四周,然后离开。
这并不是因为内容不好——而是因为它是静态的。一切都是硬编码的。一旦玩家摸清了规律,就再也没有什么可以期待的了。
MRE 就是为了解决这个问题而存在的。
它不会帮你建造地图或设计玩法。它只做一件事:
让你的服务器在你不在场时也能自行运行、变化并带来惊喜。
事件行触发,权重滚动,条件筛选。玩家永远不知道接下来会发生什么。
不仅仅是另一个“定时奖励”插件
市面上大多数随机事件插件要么广播一条预定消息,要么发放一个随机奖励。玩家在使用两次后就能看穿这一切。
MRE 建立在两个核心概念之上:
- 事件 (Event) — 发生什么。 一系列动作,带有可选的条件、权重和持续时间。
- 事件行 (Event Line) — 何时发生。 按固定间隔或 Cron 计划运行,然后从其池中选择一个有权重的事件。
自然灾害、祝福、地牢入侵、旅行商人、随机 Boss、世界变异——只要你想象得到,就可以将其纳入其中。
简而言之:你的服务器拥有了自己的命运系统。
时间掌控,由你决定
- 固定间隔 — 每 30 秒,每 5 分钟,随你所需
- Cron 表达式 — 凌晨 3 点,周五晚上 8:30,每天中午——精确到分钟
- 手动触发 — 用于测试或即时事件,只需一键
随机,但合理
- 每个事件在其所属的行中都有独立的权重——权重越高,出现频率越高
- 支持空事件槽——“无事发生”也可以成为池子的一部分
- 条件过滤在选择之前运行——不符合条件的事件甚至不会参与滚动
随机并不意味着混乱。
动作编排
| 类别 |
它能做什么 |
| 目标选择 |
玩家 / 世界(按权限过滤,按世界过滤;洗牌;限制数量) |
| 效果 |
治疗 / 伤害 / 清空物品栏 / 播放声音 / 改变天气 |
| 消息传递 |
私聊 / 全服广播 |
| 命令 |
控制台或玩家命令,支持 %占位符% 插值 |
| 流程控制 |
停止剩余动作 / 跳过下一个动作 |
动作按顺序执行,每个动作的结果都会传递给下一个。因此你可以像这样串联操作:
选择所有 VIP 玩家 → 为每个人运行一个命令 → 播放声音 → 广播公告
具体示例:
每天 20:00,有 30% 的概率一位“旅行商人”到来。全服广播 + 3 名随机玩家获得折扣券。持续 10 分钟。
条件系统
11 种内置条件类型:在线玩家数、总玩家数、世界数、服务器 TPS、服务器版本、插件状态、玩家权限、玩家名称/世界名称匹配等。
使用 all_of / any_of / not 逻辑门将它们组合起来,构建任意复杂的规则。
例如:“TPS 高于 15 且 在线玩家超过 30 人 且 不在清晨时段。”
如果服务器状态不正确,什么都不会触发。
开始与结束
事件支持持续时间:触发时运行“开始动作”,状态在持续时间内保持,并在时间结束时自动运行“结束动作”。
限时事件、阶段遭遇战、Boss 降临——事件拥有完整生命周期,而不仅仅是一个瞬间。
注意: 如果你的事件临时修改了数值,请记住在“结束动作”中将其恢复。
完整的 GUI 配置
所有内容均可在游戏中配置:
主菜单引导至分页列表,用于管理事件和事件行。创建、重命名、更改图标、启用/禁用、删除。在事件中可视化组合动作和条件;在事件行中可视化设置权重、间隔、Cron 计划和持续时间。启动、停止和即时触发。
不想写 YAML?你不必这么做。整个流程都可以点击完成。

对于开发者:三行代码
MRE 提供了稳定的集成 API。其他插件可以注册自己的动作类型、事件和事件行:
MittelRandomEventsAPI.registerActionType(myAction); // 注册自定义动作
MittelRandomEventsAPI.registerEvent(myEvent); // 注册自定义事件
MittelRandomEventsAPI.registerLine(myLine); // 注册并立即调度
自定义上下文、自定义动作、深度集成。
兼容性
- PlaceholderAPI + MiniPlaceholders 支持:
%mittelrandomevents_event_count%、%mittelrandomevents_next_event_remaining%、%mittelrandomevents_current_event% 等——以便记分板、BossBar 和其他插件能够“看到”事件系统
- 更多插件集成即将推出
你能用它做什么?
如果你希望你的服务器做点什么,MRE 可能都能处理:
- 生存服每日活动
- RPG 世界随机遭遇
- 小游戏服活动
- 季节性和节日活动
- 地牢和挑战机制
- 在线玩家奖励
- 服务器公告集成
- 跨插件自动化流水线
- 管理员测试和即兴事件
你可以让服务器变得生动活泼——或者让事件保持克制、稀有且神秘。重要的不是随机性本身,而是让每一个随机时刻契合你的服务器的节奏。
MittelRandomEvents
Make every minute on your server worth looking forward to.
Links
GitHub:
Discord:
简体中文链接:
QQ群: 1107921027
The Problem
You've built the map. You've designed the gameplay. You've configured the rewards. Players join, look around, and leave.
It's not that the content is bad — it's that it's static. Everything is hardcoded. Once players figure out the pattern, there's nothing left to anticipate.
MRE exists to fix that.
It won't build your maps or design your gameplay. It does exactly one thing:
It lets your server run, shift, and surprise on its own — even when you're not watching.
Event lines fire, weights roll, conditions gate. Players never know what's coming next.
Not Just Another "Timed Reward" Plugin
Most random-event plugins on the market do one of two things: broadcast a scheduled message, or hand out a random reward. Players see through it after two uses.
MRE is built on two core concepts:
- Event — what happens. A sequence of actions, with optional conditions, weight, and duration.
- Event Line — when it happens. Runs on a fixed interval or a Cron schedule, then picks a weighted event from its pool.
Natural disasters, blessings, dungeon invasions, traveling merchants, random bosses, world mutations — if you can imagine it, you can slot it in.
In short: your server gets its own fate system.
Timing, Your Way
- Fixed interval — every 30 seconds, every 5 minutes, whatever you need
- Cron expressions — 3 AM, Friday 8:30 PM, every day at noon — down to the minute
- Manual trigger — for testing or on-the-fly events, one click
Random, But Sensible
- Each event has its own weight within a line — higher weight, more frequent
- Empty event slots are supported — "nothing happens" can be part of the pool
- Condition filtering runs before selection — ineligible events don't even roll
Random doesn't mean chaotic.
Action Choreography
| Category |
What it can do |
| Target Selection |
Players / worlds (filter by permission, by world; shuffle; limit count) |
| Effects |
Heal / damage / clear inventory / play sound / change weather |
| Messaging |
Private message / server broadcast |
| Commands |
Console or player commands, with %placeholder% interpolation |
| Flow Control |
Stop remaining actions / skip the next action |
Actions run in order, and each one passes its result to the next. So you can chain things like:
Select all VIP players → run a command for each → play a sound → broadcast an announcement
A concrete example:
Every day at 20:00, there's a 30% chance a "Traveling Merchant" arrives. Server-wide broadcast + 3 random players receive a discount coupon. Lasts 10 minutes.
Condition System
11 built-in condition types: online player count, total players, world count, server TPS, server version, plugin state, player permissions, player name / world name matching, and more.
Combine them with all_of / any_of / not logic gates to build arbitrarily complex rules.
For example: "TPS above 15 AND more than 30 players online AND not during early morning hours."
If the server isn't in the right state, nothing fires.
A Beginning and an End
Events support a duration: a "start action" runs on trigger, the state persists for the duration, and an "end action" runs automatically when time is up.
Limited-time events, phased encounters, boss arrivals — events have a full lifecycle, not just a single instant.
Note: If your event temporarily modifies values, remember to restore them in the "end action."
Full GUI Configuration
Everything is configurable in-game:
A main menu leads into paginated lists for events and event lines. Create, rename, change icons, enable/disable, delete. Visually compose actions and conditions inside events; visually set weights, intervals, Cron schedules, and durations inside event lines. Start, stop, and trigger instantly.
Don't want to write YAML? You don't have to. The entire pipeline can be clicked together.

For Developers: Three Lines of Code
MRE exposes a stable integration API. Other plugins can register their own action types, events, and event lines:
MittelRandomEventsAPI.registerActionType(myAction); // register a custom action
MittelRandomEventsAPI.registerEvent(myEvent); // register a custom event
MittelRandomEventsAPI.registerLine(myLine); // register and schedule immediately
Custom contexts, custom actions, deep integration.
Compatibility
- PlaceholderAPI + MiniPlaceholders support:
%mittelrandomevents_event_count%, %mittelrandomevents_next_event_remaining%, %mittelrandomevents_current_event%, and more — so scoreboards, BossBars, and other plugins can "see" the event system
- More plugin integrations on the way
What Can You Use It For?
If you want your server to do something, MRE can probably handle it:
- Survival server daily events
- RPG world random encounters
- Minigame server activities
- Seasonal and holiday events
- Dungeon and challenge mechanics
- Online player rewards
- Server announcement integration
- Cross-plugin automation pipelines
- Admin testing and ad-hoc events
You can make your server lively — or keep events restrained, rare, and mysterious. What matters isn't randomness itself; it's making every random moment fit the rhythm of your server.
评论 0
登录后参与评分
还没有评论,来抢沙发吧