Skip to content

🐛 Fix 70+ bugs, add DeathMessage module, fix 1.21.11 compatibility#230

Merged
Maxlego08 merged 2 commits intoMaxlego08:developfrom
WhiteProject1:main
Mar 10, 2026
Merged

🐛 Fix 70+ bugs, add DeathMessage module, fix 1.21.11 compatibility#230
Maxlego08 merged 2 commits intoMaxlego08:developfrom
WhiteProject1:main

Conversation

@WhiteProject1
Copy link
Contributor

@WhiteProject1 WhiteProject1 commented Mar 9, 2026

Summary

  • 70+ bug fixes across commands, modules, and utilities (null checks, wrong enums, missing onlyPlayers(), == vs .equals(), NPE guards)
  • New DeathMessage module with 25+ purple-themed death messages, hover details, click-to-teleport, and per-player toggle
  • NMS V1_21_8-11 build fix for adventure-text-serializer-ansi empty version resolution
  • Hologram NPE crash fix - plugin no longer crashes when NMS hologram class is unavailable
  • Enchantment fixes - LUNGE (1.21.11) support, null-safe registration, deprecated translationKey() fallback

Bug Fixes

Null Safety (Wave 1-4)

  • Add null player checks in 20+ commands (teleport, experience, give, phantoms, social spy, etc.)
  • Fix null getDefaultEconomy() NPE in CommandPay
  • Fix null sanction checks in SanctionModule, ZStorageManager, ButtonSanctions
  • Fix null user checks in autocomplete methods (CommandDelHomeConfirm, CommandHome, CommandCooldownDelete)
  • Fix null user in UserPlaceholders for user_has_discord_linked
  • Fix player.isOnline() checks in delayed tasks (night vision)
  • Fix InvseeListener null/offline target player validation

Logic Fixes

  • Fix == vs .equals() for player object comparisons in toggle commands
  • Fix wrong description enums (CommandEnderChest, CommandEssentialsClearRandomWord)
  • Fix wrong economy reason in CommandEconomySet
  • Fix min/max swap bug in CommandEconomyGiveRandom
  • Fix wrong event check in VoteModule
  • Fix compareTo > 0>= 0 in EconomyModule hasMoney()
  • Add missing onlyPlayers() to CommandScoreboard, CommandTrade, CommandPayToggle

Hologram & 1.21.11 Compatibility

  • HologramLoader/HologramModule: null check prevents plugin crash when NMS class unavailable
  • CommandEnchant: fallback for deprecated translationKey()
  • ZEnchantments: add LUNGE enchantment (1.21.11), null-safe register, use valueOf() for 1.21 enchants
  • NMS V1_21_8-11: resolution strategy for adventure-text-serializer-ansi empty version BOM

New: DeathMessage Module

  • 25+ death cause messages with purple theme
  • Hover details showing death coordinates
  • Click-to-teleport suggestion
  • Per-player toggle via /deathmessage command
  • Configurable modes: DISABLE, DEFAULT, CUSTOM

Test plan

  • Plugin enables without errors on 1.21.11
  • Test /enchant lunge 1 works
  • Test death messages for all death causes
  • Test /deathmessage toggle
  • Test hologram module graceful fallback
  • Test economy commands (pay, baltop, set, give-random)
  • Test teleportation commands (tpa, home, spawn, warp)

@WhiteProject1 WhiteProject1 changed the title 🐛 Fix 70+ bugs, add DeathMessage module 🐛 Fix 70+ bugs, add DeathMessage module, fix 1.21.11 compatibility Mar 9, 2026
@Maxlego08
Copy link
Owner

You must do your PR in the develop branch and not manually, please change that, otherwise I will not accept your PR.

@WhiteProject1 WhiteProject1 changed the base branch from main to develop March 10, 2026 16:26
@WhiteProject1
Copy link
Contributor Author

Done, changed the base branch to develop. Sorry about that!

Bug fixes (Wave 1-4):
- Fix null player checks in 20+ commands (teleport, experience, give, trade, etc.)
- Fix == vs .equals() comparisons for player objects in toggle commands
- Fix wrong description/message enums in multiple commands
- Fix economy NPE (null default economy, min/max swap, wrong reason enum)
- Fix null sanction checks in SanctionModule, ZStorageManager, ButtonSanctions
- Fix null user checks in autocomplete methods and placeholders
- Fix player.isOnline() checks in delayed tasks (night vision)
- Fix hologram module null check when NMS class not found
- Fix InvseeListener null/offline target player
- Add missing onlyPlayers() to CommandScoreboard, CommandTrade, CommandPayToggle
- Add null module checks in commands that require modules

New features:
- DeathMessage module with 25+ purple-themed death cause messages
- Per-player death message toggle (/deathmessage command)
- Hover details showing death coordinates
- Click-to-teleport suggestion on death messages

Build fixes:
- Fix adventure-text-serializer-ansi dependency resolution for NMS V1_21_8-11
- Add resolution strategy in allprojects for empty version BOM deps
- HologramLoader/Module: null check when NMS class unavailable (prevents plugin crash)
- CommandEnchant: fallback for deprecated translationKey()
- ZEnchantments: add LUNGE (1.21.11), null-safe register, use valueOf() for 1.21 enchants
@Maxlego08 Maxlego08 merged commit 1c17163 into Maxlego08:develop Mar 10, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants