diff --git a/src/main/java/com/craftaro/skyblock/hologram/Hologram.java b/src/main/java/com/craftaro/skyblock/hologram/Hologram.java index 645f7c14..fd20f7d6 100644 --- a/src/main/java/com/craftaro/skyblock/hologram/Hologram.java +++ b/src/main/java/com/craftaro/skyblock/hologram/Hologram.java @@ -15,7 +15,7 @@ public class Hologram { private final Location location; public Hologram(HologramType type, Location location, List lines) { - this.hologramId = location.toString() + UUID.randomUUID(); + this.hologramId = type + "_" + UUID.randomUUID(); this.type = type; this.location = location; diff --git a/src/main/java/com/craftaro/skyblock/tasks/HologramTask.java b/src/main/java/com/craftaro/skyblock/tasks/HologramTask.java index 58d89c69..84279028 100644 --- a/src/main/java/com/craftaro/skyblock/tasks/HologramTask.java +++ b/src/main/java/com/craftaro/skyblock/tasks/HologramTask.java @@ -73,9 +73,9 @@ public void spawnHologram(HologramType type) { FileManager.Config locationsConfig = fileManager.getConfig(new File(plugin.getDataFolder(), "locations.yml")); FileConfiguration locationsConfigLoad = locationsConfig.getFileConfiguration(); - if (locationsConfigLoad.getString("Location.Hologram.Leaderboard." + type) != null) { + if (locationsConfigLoad.getString("Location.Hologram.Leaderboard." + type.getFriendlyName()) != null) { spawnHologram(type, plugin.getFileManager().getLocation(locationsConfig, - "Location.Hologram.Leaderboard." + type, true), getHologramLines(type)); + "Location.Hologram.Leaderboard." + type.getFriendlyName(), true), getHologramLines(type)); } }