HungerGamesHolograms
HungerGamesHolograms 是一款轻量级的 Paper 插件,旨在通过 DecentHolograms 管理 Hunger Games 地图中的战利品宝箱全息图。
该插件在每个战利品容器上方提供清晰的视觉反馈,指示宝箱是否已被掠夺或尚未开启,帮助玩家和管理员在匹配期间跟踪战利品状态。
它被设计得简单、高效,并且仅专注于单一任务。
⸻
✨ 核心功能
• 动态宝箱全息图
• 在每个宝箱上方显示可配置的文本(例如:尚未掠夺)
• 在首次打开后自动更新为不同的文本(例如:已掠夺)
• 支持多种容器类型
• 箱子
• 陷阱箱
• 桶
• DecentHolograms 集成
• 使用 DecentHolograms 作为全息图引擎
• 自动创建、更新和移除全息图
• 所有全息图均使用可配置的前缀进行命名空间划分,以确保安全管理
• 持久化战利品状态(可选)
• 掠夺状态可以保存到磁盘
• 服务器重启后恢复状态
• 可以在比赛之间重置
• 异步加载
• 宝箱位置异步加载
• 重载时不会出现卡顿
⸻
? 工作原理
• 从配置文件读取宝箱位置(通常由 Hunger Games 插件生成)。
• 对于每个位置,在容器稍上方创建一个全息图。
• 当玩家首次打开宝箱时:
• 宝箱被标记为已掠夺
• 全息图文本立即更新
• 后续打开不会触发额外变化。
只计算真实交互:
插件响应实际的容器开启操作,而不是左键点击或攻击。
⸻
⚙️ 命令
• /hgh reload
重新加载配置并重新生成全息图
• /hgh purge
移除插件创建的所有全息图
• /hgh reset
将所有宝箱重置为“未掠夺”状态
• /hgh status
显示插件状态及跟踪的宝箱数量
权限:hgh.admin(默认 OP)
⸻
? 配置亮点
• serverId 安全锁定(如果未设置,插件将不会启动)
• 可自定义全息图文本
• 可调整全息图位置的 Y 轴偏移量
• 可选的战利品状态持久化
• 支持多个世界或地图变体
HungerGamesHolograms
HungerGamesHolograms is a lightweight Paper plugin designed to manage loot chest holograms in Hunger Games maps using DecentHolograms.
The plugin provides clear visual feedback above each loot container, indicating whether a chest has already been looted or has not been opened yet, helping players and admins track loot state during a match.
It is built to be simple, efficient, and focused on one task only.
⸻
✨ Core Features
• Dynamic chest holograms
• Displays a configurable
text above each chest (e.g. Not Looted Yet)
• Automatically updates to a different text (e.g. Already Looted) after the first opening
• Supports multiple container types
• Chest
• Trapped Chest
• Barrel
• DecentHolograms integration
• Uses DecentHolograms as the hologram engine
• Automatically creates, updates, and removes holograms
• All holograms are namespaced with a configurable prefix for safe management
• Persistent loot state (optional)
• Looted status can be saved to disk
• State is restored after server restart
• Can be reset between matches
• Asynchronous loading
• Chest locations are loaded asynchronously
• No lag spikes during reloads
⸻
? How It Works
• Chest locations are read from a configuration file (typically generated by a Hunger Games plugin).
• For each location, a hologram is created slightly above the container.
• When a player opens a chest for the first time:
• The chest is marked as looted
• The hologram text is updated instantly
• Subsequent openings do not trigger additional changes.
Only real interactions are counted:
the plugin reacts to actual container opening, not left-clicks or attacks.
⸻
⚙️ Commands
• /hgh reload
Reloads configuration and regenerates holograms
• /hgh purge
Removes all holograms created by the plugin
• /hgh reset
Resets all chests to the “not looted” state
• /hgh status
Displays plugin status and tracked chest count
Permission: hgh.admin (OP by default)
⸻
? Configuration Highlights
• serverId safety lock (plugin will not start if unset)
• Customizable hologram texts
• Adjustable Y-offset for hologram position
• Optional loot-state persistence
• Support for multiple worlds or map variants
评论 0
登录后参与评分
还没有评论,来抢沙发吧