mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-25 19:56:28 +01:00
Fix hologram leaderboards not showing
This commit is contained in:
parent
3129adce6f
commit
fd158996df
@ -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;
|
||||
|
@ -73,9 +73,9 @@ public class HologramTask extends BukkitRunnable {
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user