NewGoldenHead icon

NewGoldenHead -----

A magical golden head with healing and speed effects.




  1. Added Version Checking Feature:
    • Implemented a new UpdateChecker class that checks for updates from SpigotMC using its API.
    • The UpdateChecker asynchronously requests the latest version and compares it with the current plugin version.
    • Incorporated the UpdateChecker into the onEnable method of the NewGoldenHead main class.
  2. Updated NewGoldenHead Main Class:
    • Integrated the UpdateChecker to perform an update check during the onEnable method.
    • Removed redundant log messages about the update status.
    • Displayed the loading logo along with the update status (up-to-date or outdated).
  3. Updated LoadingLogo Class:
    • Created a method getLogo(boolean isUpToDate) to display the loading logo with a message indicating whether the plugin is up-to-date or outdated.
Detailed Changes:
  1. UpdateChecker Class:
    • Added a new class to handle version checking using SpigotMC's API.
    • Implemented methods to asynchronously fetch the latest version and compare it with the current version.
    • Utilized JSON parsing to read the response from SpigotMC.
  2. Modifications to NewGoldenHead Main Class:
    • Updated onEnable method to use the UpdateChecker:
      • Initialized the UpdateChecker with the plugin ID.
      • Checked for updates and displayed the appropriate message in the console.
      • Displayed the loading logo with the update status.
    • Removed redundant logging messages about the plugin being up-to-date.
  3. Modifications to LoadingLogo Class:
    • Created a method getLogo(boolean isUpToDate) to generate the loading logo with the update status.
    • Ensured the logo includes a message about whether the plugin is up-to-date or outdated.
----------, Jul 30, 2024

Resource Information
Author:
----------
Total Downloads: 41
First Release: Jul 30, 2024
Last Update: Jul 30, 2024
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings