src/main/java/PlayerStatusSign.java aktualisiert
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import org.bstats.bukkit.Metrics; // bStats import
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.GameMode;
|
import org.bukkit.GameMode;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
@@ -56,6 +57,10 @@ public class PlayerStatusSign extends JavaPlugin implements Listener {
|
|||||||
private static final String CONFIG_VERSION = "1.0.6";
|
private static final String CONFIG_VERSION = "1.0.6";
|
||||||
private static final String PLUGIN_AUTHOR = "M_Viper";
|
private static final String PLUGIN_AUTHOR = "M_Viper";
|
||||||
|
|
||||||
|
// bStats Metrics-Objekt
|
||||||
|
private static final int BSTATS_PLUGIN_ID = 26877; // <-- bStats Service-ID hier eintragen!
|
||||||
|
private Metrics metrics;
|
||||||
|
|
||||||
// ------------------------------------------------------------
|
// ------------------------------------------------------------
|
||||||
// Lifecycle
|
// Lifecycle
|
||||||
// ------------------------------------------------------------
|
// ------------------------------------------------------------
|
||||||
@@ -75,6 +80,10 @@ public class PlayerStatusSign extends JavaPlugin implements Listener {
|
|||||||
loadPlayers();
|
loadPlayers();
|
||||||
startSignUpdater();
|
startSignUpdater();
|
||||||
|
|
||||||
|
// ---- bStats starten ----
|
||||||
|
metrics = new Metrics(this, BSTATS_PLUGIN_ID);
|
||||||
|
getLogger().info("bStats wurde gestartet (Plugin-ID: " + BSTATS_PLUGIN_ID + ")");
|
||||||
|
|
||||||
// Konsolenmeldung beim Plugin-Start
|
// Konsolenmeldung beim Plugin-Start
|
||||||
getLogger().info("[>] ========================================== [<]");
|
getLogger().info("[>] ========================================== [<]");
|
||||||
getLogger().info(" PlayerStatusSign - " + getDescription().getVersion() + " (cfg " + CONFIG_VERSION + ")");
|
getLogger().info(" PlayerStatusSign - " + getDescription().getVersion() + " (cfg " + CONFIG_VERSION + ")");
|
||||||
|
Reference in New Issue
Block a user