Skip to content

Commit

Permalink
Fix hologram leaderboards not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
ceze88 committed Feb 23, 2024
1 parent 3129adc commit fd15899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/craftaro/skyblock/hologram/Hologram.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Hologram {
private final Location location;

public Hologram(HologramType type, Location location, List<String> lines) {
this.hologramId = location.toString() + UUID.randomUUID();
this.hologramId = type + "_" + UUID.randomUUID();

this.type = type;
this.location = location;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/craftaro/skyblock/tasks/HologramTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit fd15899

Please sign in to comment.