From c74121f011af8b41ba2f6494ea72f708f80192c6 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 21 Jul 2024 14:03:35 +0200 Subject: [PATCH] Fix Leaderboard loading --- src/de/steamwar/lobby/util/Leaderboard.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/steamwar/lobby/util/Leaderboard.java b/src/de/steamwar/lobby/util/Leaderboard.java index 0ff5849..d468460 100644 --- a/src/de/steamwar/lobby/util/Leaderboard.java +++ b/src/de/steamwar/lobby/util/Leaderboard.java @@ -3,6 +3,7 @@ package de.steamwar.lobby.util; import de.steamwar.entity.RArmorStand; import de.steamwar.entity.REntity; import de.steamwar.entity.REntityServer; +import de.steamwar.lobby.LobbySystem; import de.steamwar.sql.SteamwarUser; import de.steamwar.sql.internal.Statement; import lombok.AllArgsConstructor; @@ -36,6 +37,7 @@ public class Leaderboard implements Listener { this.configKey = configKey; this.location = location; this.best = best; + Bukkit.getPluginManager().registerEvents(this, LobbySystem.getPlugin()); update(); }