Speedgot
NewGoldenHead
-----
A magical golden head with healing and speed effects.
Download Now
25.7 KB .jar
Overview
Updates (
--
)
Reviews (
---
)
Version History
Discussion
New Update
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.
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).
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:
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.
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.
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
View on SpigotMC
Resource Information
Author:
----------
Total Downloads:
42
First Release:
Jul 30, 2024
Last Update:
Jul 30, 2024
Category:
---------------
All-Time Rating:
0 ratings
Version
-----
Released:
--------------------
Downloads:
------
Version Rating:
----------------------
--
ratings
Ask Questions / Get Support