This update fixes several critical issues in the BanList GUI module that could cause server crashes.
Fixed: Critical crash when opening Ban Details GUI caused by invalid material name (HOURGLASS)
HOURGLASS does not exist in Minecraft/Bukkit APICLOCK (the correct material name)Fixed: Material validation errors
Material.valueOf() calls now include proper try-catch error handlingIllegalArgumentException crashes when configuration contains invalid materialsFixed: Pagination bounds checking
IndexOutOfBoundsException when navigating between pagesAdded: Safe material name validation with fallback handling for all GUI items
Added: Enhanced slot bounds checking throughout the BanList module
ArrayIndexOutOfBoundsException errorsImproved: Better error handling for invalid configuration values
Zenith-Mod Velocity v1.2.5 is now also available! The Velocity version includes all the same features and bug fixes as the Bukkit version.
All GUI item creation now includes safe material validation:
Material material;
try {
material = Material.valueOf(materialName);
} catch (IllegalArgumentException e) {
// Fallback to safe default
material = Material.PAPER; // or appropriate fallback
}
This ensures that even if the configuration contains invalid material names (like HOURGLASS), the server will not crash and will use a safe fallback material instead.
All slot assignments now validate bounds:
if (slot >= 0 && slot < gui.getSize()) {
gui.setItem(slot, item);
}
This prevents ArrayIndexOutOfBoundsException errors when configuration contains invalid slot numbers.
If you're using custom material names in modules/banlist.yml, please ensure they are valid Minecraft material names. Common mistakes:
HOURGLASS → ✅ CLOCKWOOL → ✅ WHITE_WOOL (or specific color)STAINED_GLASS → ✅ WHITE_STAINED_GLASS (or specific color)For a complete list of valid material names, refer to the Bukkit Material API documentation.
⚠️ Recommendation: If you're using the BanList GUI feature, we strongly recommend updating to this version to prevent potential server crashes.
Developed by Zenith-Studios

Advanced moderation plugin with ban/mute systems, escalation templates, offline support, and Web-API integration for professional server management.