? 剧情 — 玩家专属剧情系统
Story 是一款高性能的 Paper 插件,为每位玩家分配独特的个性化剧情线,并根据他们在游戏中的行为自动推进。专为超越简单任务插件的服务端设计——Story 旨在打造 以叙事为核心的 Minecraft 体验。
? 特性
线性剧情推进
玩家必须完成当前分配的剧情才能进入下一个。只需在每个剧情文件中定义 previousStory(前一个剧情)和 nextStory(下一个剧情),插件即可自动串联整个剧情链——无需复杂的脚本编写。
触发系统
几乎任何玩家行为都可以用作剧情触发器。在单个剧情中组合多个触发器,实现丰富且多目标的进度推进。
| 触发器 |
描述 |
BREAK_BLOCK |
破坏特定方块 |
CRAFT_ITEM |
合成特定物品 |
INTERACT_CHEST |
与箱子交互 |
KILL_MYTHIC_MOB |
击杀特定的 MythicMobs 实体 |
TOWNY_* |
城镇创建、加入国家、领土扩张等 |
COMPLETE_QUEST |
通过 Quests 插件完成任务 |
完全支持原版方块/物品以及 ItemsAdder 自定义物品(namespace:id)。
行动系统
当触发器激活时,将执行以下一项或多项行动:
- 发送消息 — 发送个人消息或全服广播。支持
& 颜色代码和 PlaceholderAPI 占位符。
- 运行命令 — 以控制台身份执行任意命令(非常适合奖励、称号、传送等)
- 推进剧情 — 增加目标计数器;当所有目标达成时,自动将玩家过渡到下一个剧情。
管理员命令
| 命令 |
描述 |
/story reload |
热重载所有剧情文件,无需重启服务器 |
/story restart |
安全保存所有数据,然后执行完全重载 |
/story list |
查看所有已加载的剧情及其激活状态 |
/story next <player> |
强制将玩家推进到下一个剧情 |
/story set <player> <storyId> |
瞬间将玩家传送到任意指定剧情 |
? 集成
所有集成均为 软依赖 —— Story 在没有安装任何集成插件的情况下也能完美运行,并且仅在实际安装了相关插件时才激活对应功能。
⚡ 性能
- 内存处理 — 所有重复性数据操作均在内存中运行,最小化磁盘 I/O 开销
- 反射缓存 — 昂贵的反射调用会被缓存,即使在玩家数量众多时也能保持稳定的性能
- 安全自动保存 — 当服务器停止或插件被禁用时,玩家进度会自动保存,防止任何数据丢失
? 要求
|
|
| Minecraft |
1.21.4+ |
| 服务端软件 |
Paper(或兼容分支) |
| Java |
21+ |
? 安装
- 从 Releases 页面下载最新的
.jar 文件
- 将其放入服务端的
plugins/ 文件夹中
- 启动服务器 —— 将在
plugins/Story/ 下生成默认配置文件
- 定义你的剧情并运行
/story reload 以应用更改
源代码: github.com/NOAHSOFTKR/story
基于 Kotlin 构建 · Paper API · Java 21 · Minecraft 1.21.4
? Story — Per-Player Storyline System
Story is a high-performance Paper plugin that assigns each player a unique, personalized storyline and automatically advances it in response to their in-game actions. Built for servers that go beyond simple quest plugins — Story is designed for narrative-driven Minecraft experiences.
? Features
Linear Story Progression
Players must complete their currently assigned story before moving on to the next. Simply define previousStory and nextStory in each story file, and the plugin automatically chains the entire storyline — no complex scripting required.
Trigger System
Almost any player action can be used as a story trigger. Combine multiple triggers within a single story for rich, multi-objective progression.
| Trigger |
Description |
BREAK_BLOCK |
Break a specific block |
CRAFT_ITEM |
Craft a specific item |
INTERACT_CHEST |
Interact with a chest |
KILL_MYTHIC_MOB |
Kill a specific MythicMobs entity |
TOWNY_* |
Town creation, nation join, territory expansion, etc. |
COMPLETE_QUEST |
Complete a quest via the Quests plugin |
Both vanilla blocks/items and ItemsAdder custom items (namespace:id) are fully supported.
Action System
When a trigger fires, one or more of the following actions execute:
- Send Message — Deliver a personal message or server-wide broadcast. Supports
& color codes and PlaceholderAPI placeholders.
- Run Command — Execute any command as console (great for rewards, titles, teleportation, etc.)
- Advance Story — Increment objective counters; automatically transition the player to the next story when all objectives are met.
Admin Commands
| Command |
Description |
/story reload |
Hot-reload all story files without restarting the server |
/story restart |
Safely save all data, then perform a full reload |
/story list |
View all loaded stories with their activation status |
/story next <player> |
Force-advance a player to their next story |
/story set <player> <storyId> |
Teleport a player to any specific story instantly |
? Integrations
All integrations are soft dependencies — Story runs perfectly fine without any of them, and only activates features for plugins that are actually installed.
⚡ Performance
- In-memory processing — All repetitive data operations run in memory, minimizing disk I/O overhead
- Reflection caching — Expensive reflection calls are cached, keeping performance stable even under high player counts
- Safe auto-save — Player progress is automatically saved when the server stops or the plugin is disabled, preventing any data loss
? Requirements
|
|
| Minecraft |
1.21.4+ |
| Server Software |
Paper (or compatible forks) |
| Java |
21+ |
? Installation
- Download the latest
.jar from the Releases page
- Drop it into your server's
plugins/ folder
- Start the server — a default config will be generated under
plugins/Story/
- Define your stories and run
/story reload to apply
Source Code: github.com/NOAHSOFTKR/story
Built with Kotlin · Paper API · Java 21 · Minecraft 1.21.4
评论 0
登录后参与评分
还没有评论,来抢沙发吧