From 40399655b1c2c3b3e0ee388c13b3f6d28a2b20b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenzo=20Dellac=C3=A0?= Date: Thu, 25 Jun 2020 22:08:06 +0200 Subject: [PATCH] metrics update --- HubThat-Reborn.iml | 8 ++++---- buildNumber.properties | 4 ++-- src/main/java/net/mindoverflow/hubthat/HubThat.java | 7 +++++-- .../net/mindoverflow/hubthat/utils/files/FileUtils.java | 4 ++-- .../hubthat/utils/{statistics => metrics}/Metrics.java | 2 +- .../utils/{statistics => metrics}/UpdateChecker.java | 2 +- 6 files changed, 15 insertions(+), 12 deletions(-) rename src/main/java/net/mindoverflow/hubthat/utils/{statistics => metrics}/Metrics.java (99%) rename src/main/java/net/mindoverflow/hubthat/utils/{statistics => metrics}/UpdateChecker.java (99%) diff --git a/HubThat-Reborn.iml b/HubThat-Reborn.iml index 42cad09..c377c6f 100644 --- a/HubThat-Reborn.iml +++ b/HubThat-Reborn.iml @@ -1,6 +1,6 @@ - + @@ -30,12 +30,12 @@ - + - - + + \ No newline at end of file diff --git a/buildNumber.properties b/buildNumber.properties index c80e2fe..2aa34c5 100644 --- a/buildNumber.properties +++ b/buildNumber.properties @@ -1,3 +1,3 @@ #maven.buildNumber.plugin properties file -#Thu Jun 25 19:47:56 CEST 2020 -buildNumber=180 +#Thu Jun 25 22:07:48 CEST 2020 +buildNumber=184 diff --git a/src/main/java/net/mindoverflow/hubthat/HubThat.java b/src/main/java/net/mindoverflow/hubthat/HubThat.java index bb951d2..5912e23 100644 --- a/src/main/java/net/mindoverflow/hubthat/HubThat.java +++ b/src/main/java/net/mindoverflow/hubthat/HubThat.java @@ -12,8 +12,8 @@ import net.mindoverflow.hubthat.utils.Debugger; import net.mindoverflow.hubthat.utils.TeleportUtils; import net.mindoverflow.hubthat.utils.files.FileUtils; import net.mindoverflow.hubthat.utils.files.OldConfigConversion; -import net.mindoverflow.hubthat.utils.statistics.Metrics; -import net.mindoverflow.hubthat.utils.statistics.UpdateChecker; +import net.mindoverflow.hubthat.utils.metrics.Metrics; +import net.mindoverflow.hubthat.utils.metrics.UpdateChecker; import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.java.JavaPlugin; @@ -147,6 +147,9 @@ public class HubThat extends JavaPlugin metrics.addCustomChart(new Metrics.SimplePie("set-gamemode-on-join", () -> config.getString(ConfigEntries.GAMEMODE_SET_ON_JOIN.path))); metrics.addCustomChart(new Metrics.SimplePie("tp-hub-on-join", () -> config.getString(ConfigEntries.TELEPORTATION_TP_HUB_ON_JOIN.path))); metrics.addCustomChart(new Metrics.SimplePie("tp-hub-on-respawn", () -> config.getString(ConfigEntries.TELEPORTATION_TP_HUB_ON_RESPAWN.path))); + metrics.addCustomChart(new Metrics.SimplePie("multiverse-bypass", () -> config.getString(ConfigEntries.MULTIVERSE_BYPASS.path))); + metrics.addCustomChart(new Metrics.SimplePie("send-tp-message-on-join", () -> config.getString(ConfigEntries.TELEPORTATION_TP_MESSAGE_ON_JOIN.path))); + metrics.addCustomChart(new Metrics.SimplePie("fix-invisible-after-tp", () -> config.getString(ConfigEntries.INVISIBILITY_FIX.path))); if (config.getBoolean(ConfigEntries.GAMEMODE_SET_ON_JOIN.path)) { diff --git a/src/main/java/net/mindoverflow/hubthat/utils/files/FileUtils.java b/src/main/java/net/mindoverflow/hubthat/utils/files/FileUtils.java index b35160e..5686829 100644 --- a/src/main/java/net/mindoverflow/hubthat/utils/files/FileUtils.java +++ b/src/main/java/net/mindoverflow/hubthat/utils/files/FileUtils.java @@ -4,7 +4,7 @@ import net.mindoverflow.hubthat.HubThat; import net.mindoverflow.hubthat.utils.PluginCache; import net.mindoverflow.hubthat.utils.ConfigEntries; import net.mindoverflow.hubthat.utils.Debugger; -import net.mindoverflow.hubthat.utils.statistics.UpdateChecker; +import net.mindoverflow.hubthat.utils.metrics.UpdateChecker; import org.bukkit.configuration.file.YamlConfiguration; import java.io.*; @@ -67,7 +67,7 @@ public class FileUtils plugin.getServer().getScheduler().cancelTask(UpdateChecker.task.getTaskId()); } - UpdateChecker.task = plugin.getServer().getScheduler().runTaskTimerAsynchronously(plugin, plugin.updateChecker, 1, 20 * 60 * 60 * 12); + UpdateChecker.task = plugin.getServer().getScheduler().runTaskTimerAsynchronously(plugin, plugin.updateChecker, 1, 20 * 60 * 60 * 12); // 12 hours } PluginCache.invisibilityFix = config.getBoolean(ConfigEntries.INVISIBILITY_FIX.path); diff --git a/src/main/java/net/mindoverflow/hubthat/utils/statistics/Metrics.java b/src/main/java/net/mindoverflow/hubthat/utils/metrics/Metrics.java similarity index 99% rename from src/main/java/net/mindoverflow/hubthat/utils/statistics/Metrics.java rename to src/main/java/net/mindoverflow/hubthat/utils/metrics/Metrics.java index f1b145f..82c506d 100644 --- a/src/main/java/net/mindoverflow/hubthat/utils/statistics/Metrics.java +++ b/src/main/java/net/mindoverflow/hubthat/utils/metrics/Metrics.java @@ -1,4 +1,4 @@ -package net.mindoverflow.hubthat.utils.statistics; +package net.mindoverflow.hubthat.utils.metrics; import com.google.gson.JsonArray; import com.google.gson.JsonObject; diff --git a/src/main/java/net/mindoverflow/hubthat/utils/statistics/UpdateChecker.java b/src/main/java/net/mindoverflow/hubthat/utils/metrics/UpdateChecker.java similarity index 99% rename from src/main/java/net/mindoverflow/hubthat/utils/statistics/UpdateChecker.java rename to src/main/java/net/mindoverflow/hubthat/utils/metrics/UpdateChecker.java index cbf54e1..f55765f 100644 --- a/src/main/java/net/mindoverflow/hubthat/utils/statistics/UpdateChecker.java +++ b/src/main/java/net/mindoverflow/hubthat/utils/metrics/UpdateChecker.java @@ -1,4 +1,4 @@ -package net.mindoverflow.hubthat.utils.statistics; +package net.mindoverflow.hubthat.utils.metrics; import com.google.gson.JsonArray; import com.google.gson.JsonElement;