? LilWorlds - 高级世界管理
一款为支持 1.16 至 1.21.6 版本的 Minecraft 服务器提供的高性能且模块化的世界管理插件。
✨ 主要功能
? 世界管理
- 创建世界:自定义环境和生成器
- 克隆现有世界:保留所有数据
- 动态加载/卸载世界
- 无缝导入外部世界
- 通用出生点系统:支持跨世界传送
? 独立背包
- 按世界/组隔离背包 - 玩家在不同世界中可以拥有不同的背包
- 世界组 - 同一组内的世界共享背包
- 可配置的隔离选项 - 选择需要隔离的内容:背包、生命值、经验值、游戏模式、飞行状态、效果、位置、末影箱
⚡ 注重性能
- 优化的世界加载/卸载机制
- 尽可能使用异步操作
- 对服务器的影响极小
- 速率限制保护
? 模块化设计
- 基于 YAML 配置的自定义生成器系统
- 完整的配置选项
- PlaceholderAPI 集成
- bStats 指标集成
? 命令
世界命令 (/world 或 /w)
/world create <name> [environment] [-g generator] # 创建新世界
/world clone <source> <target> # 克隆现有世界
/world load [world] # 加载世界
/world unload [world] # 卸载世界
/world import <name> [environment] # 导入外部世界
/world setspawn # 设置世界出生点
/world setuniversalspawn # 设置通用出生点
/world info [world] # 显示世界信息
/world list # 列出所有世界
插件命令 (/worlds)
/worlds reload [target] # 重载插件组件
/worlds inventory <action> # 管理独立背包
/worlds groups <action> # 管理世界组
?️ 自定义生成器
在 generators/ 文件夹中使用 YAML 文件创建自定义世界生成器:
display-name: "Custom Flat World"
type: "FLAT"
generate-structures: true
biomes: ["PLAINS", "FOREST"]
layers:
- "minecraft:bedrock"
- "minecraft:stone:5"
- "minecraft:dirt:3"
- "minecraft:grass_block"
? 独立背包系统
先进的背包隔离系统,允许玩家在不同世界或世界组中拥有不同的背包:
features:
separate-inventories:
enabled: true
separate:
inventory: true
health: true
experience: true
world-groups:
survival: ["world", "world_nether", "world_the_end"]
creative: ["creative_world", "build_world"]
? PlaceholderAPI 支持
广泛的支持占位符,用于与其他插件集成:
%lilworlds_current_world%- 当前世界名称%lilworlds_total_worlds%- 已加载的世界总数%lilworlds_world_players_<world>%- 特定世界中的玩家数量- 以及更多...
? 要求
- Minecraft: 1.16 - 1.21.5 (Bukkit/Spigot/Paper)
- Java: 8 或更高版本
- 依赖项: 无(PlaceholderAPI 可选)
? 快速开始
- 下载并放入
plugins/文件夹 - 重启服务器
- 创建你的第一个世界:
/world create myworld - 启用独立背包:
/worlds inventory enable - 在
plugins/LilWorlds/config.yml中进行配置
? 链接
LilWorlds - 让世界管理变得简单、快速且强大。
? LilWorlds - Advanced World Management
A performant and modular world management plugin for Minecraft servers supporting versions 1.16 to 1.21.6.
✨ Key Features
? World Management
- Create worlds with custom environments and generators
- Clone existing worlds with all their data
- Load/unload worlds dynamically
- Import external worlds seamlessly
- Universal spawn system for cross-world teleportation
? Separate Inventories
- Per-world/group inventories - Players can have different inventories in different worlds
- World groups - Share inventories between worlds in the same group
- Configurable separation - Choose what to separate: inventory, health, experience, gamemode, flight, effects, location, ender chest
⚡ Performance Focused
- Optimized world loading/unloading
- Asynchronous operations where possible
- Minimal server impact
- Rate limiting protection
? Modular Design
- Custom generator system with YAML configuration
- Complete configuration options
- PlaceholderAPI integration
- bStats metrics integration
? Commands
World Commands (/world or /w)
/world create <name> [environment] [-g generator] # Create new world
/world clone <source> <target> # Clone existing world
/world load [world] # Load world(s)
/world unload [world] # Unload world(s)
/world import <name> [environment] # Import external world
/world setspawn # Set world spawn
/world setuniversalspawn # Set universal spawn
/world info [world] # Show world information
/world list # List all worlds
Plugin Commands (/worlds)
/worlds reload [target] # Reload plugin components
/worlds inventory <action> # Manage separate inventories
/worlds groups <action> # Manage world groups
?️ Custom Generators
Create custom world generators using YAML files in the generators/ folder:
display-name: "Custom Flat World"
type: "FLAT"
generate-structures: true
biomes: ["PLAINS", "FOREST"]
layers:
- "minecraft:bedrock"
- "minecraft:stone:5"
- "minecraft:dirt:3"
- "minecraft:grass_block"
? Separate Inventories System
Advanced inventory separation system allowing players to have different inventories in different worlds or world groups:
features:
separate-inventories:
enabled: true
separate:
inventory: true
health: true
experience: true
world-groups:
survival: ["world", "world_nether", "world_the_end"]
creative: ["creative_world", "build_world"]
? PlaceholderAPI Support
Extensive placeholder support for integration with other plugins:
%lilworlds_current_world%- Current world name%lilworlds_total_worlds%- Total loaded worlds%lilworlds_world_players_<world>%- Players in specific world- And many more...
? Requirements
- Minecraft: 1.16 - 1.21.5 (Bukkit/Spigot/Paper)
- Java: 8 or higher
- Dependencies: None (PlaceholderAPI optional)
? Quick Start
- Download and place in
plugins/folder - Restart server
- Create your first world:
/world create myworld - Enable separate inventories:
/worlds inventory enable - Configure in
plugins/LilWorlds/config.yml
? Links
- ? Documentation - Complete guides and tutorials
- ? Discord - Community support
- ? Issues - Bug reports and feature requests
- ⭐ GitHub - Source code and releases
LilWorlds - Making world management simple, fast, and powerful.
下载 LilWorlds
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LilWorlds
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LilWorlds
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LilWorlds
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LilWorlds
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LilWorlds
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LilWorlds
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LilWorlds
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LilWorlds
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
️ 关键错误修复
异步操作
- 已修复: 由于在异步线程上执行 Bukkit API 调用(世界加载、卸载、删除)导致的关键服务器错误和不稳定问题。
- 已修复: 由于缓慢的文件操作阻塞主线程,在删除世界时可能导致服务器冻结的问题。
- 已改进: 所有世界管理操作现在完全线程安全,防止数据损坏和意外崩溃。
技术改进
️ 架构
- 已改进: 重构了
WorldManager和LilWorldsAPI,将繁重的非 API 任务(如文件删除)与仅在主线程上运行的 Bukkit 调用正确分离。 - 已改进: 内部托管世界列表现在使用
ConcurrentHashMap,以确保从多个线程访问时的安全性。 - 新增:
deleteWorld过程现在返回一个CompletableFuture,为开发者提供更健壮且现代的异步 API。
️ 实现细节
⚙️ 正确的异步模式
该 API 现在可以安全地处理线程问题,允许开发者调用异步方法而无需担心服务器稳定性。
// 示例:异步且安全地删除世界
lilWorldsAPI.deleteWorldAsync("world_to_delete").thenAccept(success -> {
if (success) {
player.sendMessage("World deleted successfully!");
} else {
player.sendMessage("Error: Could not delete the world.");
}
});
兼容性
️ 向后支持
- 已保留: 完全向后兼容。使用现有 API 的代码无需进行任何更改。
- 已保留: 对于用户而言,所有命令语法和行为保持不变。
- 已保留: 无需进行配置迁移。
更新摘要
- 修复关键线程问题: 通过确保所有 Bukkit API 调用都在主服务器线程上运行,解决了主要的稳定性问题。
- 消除服务器卡顿: 将缓慢的文件删除操作移至单独的线程,防止服务器冻结。
- 增强可靠性: 使插件在生产环境中更加稳定和可靠。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧