
LilWorlds
LilWorlds is a performant, modern world management plugin for Minecraft servers.
197
2
Список изменений
️ CRITICAL BUG FIXES
Asynchronous Operations
- FIXED: Critical server errors and instability caused by performing Bukkit API calls (world loading, unloading, deletion) on asynchronous threads.
- FIXED: Potential server freezes when deleting worlds due to slow file operations blocking the main thread.
- IMPROVED: All world management operations are now fully thread-safe, preventing data corruption and unexpected crashes.
TECHNICAL IMPROVEMENTS
️ Architecture
- IMPROVED: Refactored
WorldManagerandLilWorldsAPIto correctly separate heavy, non-API tasks (like file deletion) from main-thread-only Bukkit calls. - IMPROVED: The internal list of managed worlds now uses a
ConcurrentHashMapto guarantee safe access from multiple threads. - NEW: The
deleteWorldprocess now returns aCompletableFuture, providing a more robust and modern asynchronous API for developers.
️ IMPLEMENTATION
⚙️ Correct Asynchronous Pattern
The API now safely handles threading, allowing developers to call asynchronous methods without worrying about server stability.
// Example: Asynchronously and safely deleting a world
lilWorldsAPI.deleteWorldAsync("world_to_delete").thenAccept(success -> {
if (success) {
player.sendMessage("World deleted successfully!");
} else {
player.sendMessage("Error: Could not delete the world.");
}
});
COMPATIBILITY
️ Backward Support
- MAINTAINED: Fully backward compatible. No changes are required for existing code that uses the API.
- MAINTAINED: All command syntax and behavior remain identical for users.
- MAINTAINED: No configuration migrations are needed.
UPDATE SUMMARY
- Fixed Critical Threading Issues: Resolved major stability problems by ensuring all Bukkit API calls run on the main server thread.
- Eliminated Server Lag: Moved slow file deletion operations to a separate thread, preventing server freezes.
- Enhanced Reliability: Made the plugin significantly more stable and safe for production environments.
Файлы
lilworlds-1.6.0.jar(180.91 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
v1.6.0
Загрузчики
BukkitPaperPurpurSpigot
Версии игры
1.16–1.21.6
Загрузок
43
Дата публикации
8 мес. назад
