Fix New PlaceHolder

This commit is contained in:
RayzsYT committed 2024-05-13 22:30:14 +02:00
1 parent 940699a826
commit 307928e557
5 files changed
+7 -5

No files matched your search

@@ -91,7 +91,9 @@ public class BukkitLoader extends JavaPlugin {
updaterTaskId = Bukkit.getScheduler().scheduleAsyncRepeatingTask(this, () -> {
String result = new ConnectionBuilder().setUrl("https://www.rayzs.de/proantitab/api/version.php")
.setProperties("ProAntiTab", "4654").connect().getResponse();
if (!result.equals(getDescription().getVersion())) {
Storage.NEWEST_VERSION_NAME = result;
if (!Storage.NEWEST_VERSION_NAME.equals(Storage.CURRENT_VERSION_NAME)) {
Bukkit.getScheduler().cancelTask(updaterTaskId);
if (result.equals("unknown")) {
Logger.warning("Failed reaching web host! (firewall enabled? website down?)");
@@ -39,7 +39,7 @@ public class Storage {
defaultUnknownCommandArray.add("&cThis command does not exist!");
defaultNotificationArray.add("&8[&4ProAntiTab&8] &cYou're using an outdated version of this plugin!");
defaultNotificationArray.add("&8[&4ProAntiTab&8] &cYou're using an outdated version of this plugin! (%current_version% -> %newest_version%)");
defaultNotificationArray.add("&8[&4ProAntiTab&8] &cPlease update it on: &ehttps://www.rayzs.de/products/proantitab/page");
UPDATE_ENABLED = (boolean) CONFIGURATION.getOrSet("updater.enabled", true);