diff --git a/pom.xml b/pom.xml
index 38eb041..5b1d75f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -174,5 +174,11 @@
annotations
19.0.0
+
+ org.bstats
+ bstats-bukkit
+ 1.7
+ compile
+
diff --git a/src/main/lombok/nl/sbdeveloper/themeparkplus/ThemeParkPlus.java b/src/main/lombok/nl/sbdeveloper/themeparkplus/ThemeParkPlus.java
index f324981..256c67b 100644
--- a/src/main/lombok/nl/sbdeveloper/themeparkplus/ThemeParkPlus.java
+++ b/src/main/lombok/nl/sbdeveloper/themeparkplus/ThemeParkPlus.java
@@ -10,6 +10,7 @@ import nl.sbdeveloper.themeparkplus.sbutils.UpdateManager;
import nl.sbdeveloper.themeparkplus.sbutils.YamlFile;
import nl.sbdeveloper.themeparkplus.util.LGUtil;
import nl.sbdeveloper.themeparkplus.util.License;
+import org.bstats.bukkit.Metrics;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.RegisteredServiceProvider;
@@ -176,6 +177,9 @@ public final class ThemeParkPlus extends JavaPlugin {
Bukkit.getLogger().severe("[ThemeParkPlus] Couldn't load data! Something went wrong.");
}
+ Bukkit.getLogger().info("[ThemeParkPlus] Loading metrics (can be disabled in the config of bStats)...");
+ new Metrics(this, 5023);
+
Bukkit.getLogger().info("[ThemeParkPlus] Plugin enabled!");
Bukkit.getLogger().info("[ThemeParkPlus] -------------------------------");
}
diff --git a/src/main/lombok/nl/sbdeveloper/themeparkplus/api/objects/WaitingRow.java b/src/main/lombok/nl/sbdeveloper/themeparkplus/api/objects/WaitingRow.java
index 565caf4..63cb94c 100644
--- a/src/main/lombok/nl/sbdeveloper/themeparkplus/api/objects/WaitingRow.java
+++ b/src/main/lombok/nl/sbdeveloper/themeparkplus/api/objects/WaitingRow.java
@@ -12,7 +12,7 @@ public class WaitingRow {
@Getter @Setter private String rideID;
@Getter @Setter private String regionID;
@Getter @Setter private transient int waitingPlayers = 0;
- @Getter @Setter private transient double waitingTimeMinutes = 0;
+ @Getter private transient double waitingTimeMinutes = 0;
private ArrayList signLocations = new ArrayList<>();
public WaitingRow(String rideID, String regionID) {
@@ -31,4 +31,9 @@ public class WaitingRow {
public void removeSignLocation(SignLocation loc) {
this.signLocations.remove(loc);
}
+
+ public void setWaitingTimeMinutes(double waitingTimeMinutes) {
+ if (waitingTimeMinutes < 0) return;
+ this.waitingTimeMinutes = waitingTimeMinutes;
+ }
}