ChallengePlugin
一个全面的 Minecraft 挑战插件,通过复杂的计时器系统和直观的 GUI 管理,添加多种游戏玩法挑战。
概述
ChallengePlugin 通过引入各种玩法限制和修改来改变你的 Minecraft 体验。无论你是想禁止跳跃、随机化方块掉落,还是将地面变为岩浆,此插件都提供了一个完整的挑战框架,具备持久数据存储和易于使用的界面。
主要功能
挑战系统
- 禁止跳跃 (No Jump):阻止玩家跳跃
- 随机掉落 (Random Drops):破坏的每个方块都会掉落随机物品,而非正常掉落物
- 禁止自然恢复 (No Natural Regeneration):禁用基于饥饿值的生命恢复
- 禁止所有恢复 (No Regeneration):完全禁用所有形式的生命恢复
- 挑战失败即死 (Die When Challenge Failed):当玩家在任何活跃挑战中失败时立即杀死玩家
- 地面是岩浆 (Floor Is Lava):随时间推移将玩家脚下的方块转化为岩浆块和岩浆
高级计时器系统
- 灵活计时器:支持正向计时或倒计时,并可自定义颜色
- 动作栏显示:实时向所有玩家显示计时器可见性
- 挑战集成:仅在计时器运行时激活挑战
- 持久存储:计时器状态在服务器重启后保存
用户界面
- 直观 GUI 菜单:通过库存界面轻松管理挑战
- 设置自定义:为每个挑战提供详细的配置选项
- 实时更新:对所有更改提供即时视觉反馈
- 管理员控制:基于权限访问所有功能
数据管理
- YAML 持久化:所有设置和进度自动保存
- 世界重置系统:完整的世界再生,并带有数据保留选项
- 备份友好:在重置期间可以保留设置
安装
- 下载最新版本
- 将 JAR 文件放入服务器的
plugins 文件夹
- 重启服务器
- 授予管理员
challenge.admin 权限
命令
主要命令
/menu - 打开主挑战选择界面
/menu reset confirm - 重置所有挑战和设置
/timer start|stop|pause|resume - 控制计时器功能
/timer set <hours> <minutes> <seconds> - 设置特定的计时器值
/timer settings - 打开计时器自定义菜单
/resetworld confirm - 带服务器重启的完整世界重置
实用命令
/timer save - 手动保存当前状态
/timer drops check - 检查方块将掉落什么物品(手持方块)
权限
challenge.admin - 访问所有插件命令和菜单(默认:op)
技术细节
性能优化
- 使用并发映射的高效方块转换系统
- 通过挑战状态检查优化的事件处理
- 内存安全的活动转换清理
兼容性
- 测试版本:Minecraft 1.21.4
- API:Spigot/Paper 1.21.4
- Java:需要 Java 21 或更高版本
地面是岩浆机制
“地面是岩浆”挑战具有复杂的三阶段转换系统:
- 阶段 1:方块在可配置的延迟后转化为岩浆块
- 阶段 2:岩浆块在额外延迟后变为岩浆
- 阶段 3:方块在最终延迟后重置为原始状态
每个阶段造成不同的伤害量,并为玩家提供视觉反馈。
配置
插件会自动创建一个 data.yml 文件来存储:
- 活跃的挑战状态
- 计时器配置和当前时间
- 地面是岩浆的时间设置
- 随机掉落的种子以确保一致性
设置跨服务器重启持久存在,并且可以在世界重置期间选择性保留。
开发状态
早期测试版 - 此插件目前处于早期测试版开发阶段。虽然核心功能稳定且经过测试,但某些功能可能会发生变化。请报告任何问题或建议。
已知限制
- 挑战组合可能会有意想不到的交互
- 方块转换时间的一些边缘情况
- 在大型多人环境中的测试有限
计划功能
- 其他类型的挑战
- 基于团队的挑战模式
- 成就系统
- 增强的 GUI 动画
- 针对多玩家的优化
支持
如需错误报告、功能请求或一般支持,请加入 Discord。包括你的服务器版本、插件版本以及任何问题的详细复现步骤。
ChallengePlugin
A comprehensive Minecraft challenge plugin that adds multiple gameplay challenges with a sophisticated timer system and intuitive GUI management.
Overview
ChallengePlugin transforms your Minecraft experience by introducing various gameplay restrictions and modifications. Whether you want to prevent jumping, randomize block drops, or turn the floor into lava, this plugin provides a complete challenge framework with persistent data storage and easy-to-use interfaces.
Key Features
Challenge System
- No Jump: Prevents players from jumping
- Random Drops: Every broken block drops random items instead of normal drops
- No Natural Regeneration: Disables hunger-based health regeneration
- No Regeneration: Completely disables all forms of health regeneration
- Die When Challenge Failed: Instantly kills players when they fail any active challenge
- Floor Is Lava: Transforms blocks under players into magma and lava over time
Advanced Timer System
- Flexible Timer: Count up or countdown with customizable colors
- Action Bar Display: Real-time timer visibility for all players
- Challenge Integration: Challenges only activate when timer is running
- Persistent Storage: Timer state saves across server restarts
User Interface
- Intuitive GUI Menus: Easy challenge management through inventory interfaces
- Settings Customization: Detailed configuration options for each challenge
- Real-time Updates: Immediate visual feedback for all changes
- Admin Controls: Permission-based access to all features
Data Management
- YAML Persistence: All settings and progress automatically saved
- World Reset System: Complete world regeneration with data preservation options
- Backup-friendly: Settings can be preserved during resets
Installation
- Download the latest release
- Place the JAR file in your server's
plugins folder
- Restart your server
- Grant
challenge.admin permission to administrators
Commands
Main Commands
/menu - Opens the main challenge selection interface
/menu reset confirm - Resets all challenges and settings
/timer start|stop|pause|resume - Control timer functions
/timer set <hours> <minutes> <seconds> - Set specific timer value
/timer settings - Open timer customization menu
/resetworld confirm - Complete world reset with server restart
Utility Commands
/timer save - Manually save current state
/timer drops check - Check what item a block will drop (hold block in hand)
Permissions
challenge.admin - Access to all plugin commands and menus (default: op)
Technical Details
Performance Optimizations
- Efficient block transformation system using concurrent maps
- Optimized event handling with challenge state checks
- Memory-safe cleanup of active transformations
Compatibility
- Tested Version: Minecraft 1.21.4
- API: Spigot/Paper 1.21.4
- Java: Requires Java 21 or higher
Floor Is Lava Mechanics
The Floor Is Lava challenge features a sophisticated three-stage transformation system:
- Stage 1: Block transforms to Magma Block after configurable delay
- Stage 2: Magma Block becomes Lava after additional delay
- Stage 3: Block resets to original state after final delay
Each stage deals different damage amounts and provides visual feedback to players.
Configuration
The plugin automatically creates a data.yml file to store:
- Active challenge states
- Timer configurations and current time
- Floor Is Lava timing settings
- Random drop seed for consistency
Settings persist across server restarts and can be selectively preserved during world resets.
Development Status
Early Beta - This plugin is currently in early beta development. While core functionality is stable and tested, some features may be subject to change. Please report any issues or suggestions.
Known Limitations
- Challenge combinations may have unexpected interactions
- Some edge cases in block transformation timing
- Limited testing in large multiplayer environments
Planned Features
- Additional challenge types
- Team-based challenge modes
- Achievement system
- Enhanced GUI animations
- Multiplayer-specific optimizations
Support
For bug reports, feature requests, or general support, please join the Discord. Include your server version, plugin version, and detailed reproduction steps for any issues.
评论 0
登录后参与评分
还没有评论,来抢沙发吧