[1.8 - 1.21] FarmingZone icon

[1.8 - 1.21] FarmingZone -----

Farm, Zone



Version 1.4
Bug Fixes
  • Fixed ArrayIndexOutOfBoundsException in GUI:
    • Resolved an exception (Index 9 out of bounds for length 9) in FarmCommand.openFarmGUI by increasing the inventory size from 9 to 18 slots, allowing the "Reload Config" item (for admins) to display without crashing the /farm command.
  • Fixed joinItem Reference Error:
    • Resolved a red underline on joinItem in FarmCommand.openFarmGUI by reorganizing the order of item declarations, placing "Quit Farm" at index 7 and "Join Farm" at index 8.
  • Fixed Private Access to connection:
    • Resolved the "connection has private access" error in Main by adding a public closeConnection method in FarmManager, ensuring proper encapsulation and database connection management.
  • Fixed farmManager Access Error in ActionHistory:
    • Corrected an issue where farmManager was inaccessible in the static ActionHistory class of FarmListener by making it non-static, enabling proper access to methods like getMaxXPPerPeriod.
  • Fixed setupEconomy Red Underline:
    • Resolved the red underline on setupEconomy in FarmManager by confirming the Vault dependency and adding logs to report economy initialization issues.
  • Fixed Access to Private Methods in FarmListener:
    • Resolved red underlines on farmNames, getOwnerFromLocation, and formatMessage in FarmListener by adding corresponding public methods (getFarmName, getOwnerFromLocation, formatMessage) in FarmManager.
Improvements
  • Enhanced Stability:
    • Added additional checks in database management methods (setupDatabase, saveFarm, loadFarms) to prevent unhandled exceptions.
----------, Jul 24, 2025
Resource Information
Author:
----------
Total Downloads: 234
First Release: Jul 20, 2025
Last Update: Aug 5, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings