88b0ba8b97b93faf2f825772cb00b85fd4b2f8ba
Multiple refactors and defensive fixes across kits and event handling: - RecraftManager: use Bukkit.getOnlinePlayers() collection API instead of stream. - ActiveAbility: mark backing _hitsRequired as @Volatile for thread-safety. - BlackPanther, Rattlesnake, TheWorld, Gladiator, Goblin, Venom, Voodoo: change how kit overrides are accessed (lazy or helper) to avoid stale initialization and improve readability. - Gladiator: add an ended flag to avoid double-ending fights. - Goblin & TheWorld: add game state checks to avoid restoring kits or operating on players after game end. - Rattlesnake: guard scheduled miss task with player.isOnline check and simplify action bar call. - Venom: clean up active shield tasks on kit removal and make damage handling null-safe with apply. - Voodoo: wrap passive tick in runCatching and log failures to prevent uncaught exceptions from killing tasks. - KitEventDispatcher: skip handling if victim is not alive, change interact handler to ignoreCancelled = false, and add isAlive helper. - ItemBuilder: switch lore serialization to MiniMessage, disable default italic decoration, and reuse a MiniMessage instance. These changes improve robustness, avoid race conditions, and add defensive guards against invalid state during scheduled tasks and event handling.
Description
No description provided
Languages
Kotlin
100%