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;
|
private final Location location;
|
||||||
|
|
||||||
public Hologram(HologramType type, Location location, List<String> lines) {
|
public Hologram(HologramType type, Location location, List<String> lines) {
|
||||||
this.hologramId = location.toString() + UUID.randomUUID();
|
this.hologramId = type + "_" + UUID.randomUUID();
|
||||||
|
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.location = location;
|
this.location = location;
|
||||||
|
|
|
@ -73,9 +73,9 @@ public class HologramTask extends BukkitRunnable {
|
||||||
FileManager.Config locationsConfig = fileManager.getConfig(new File(plugin.getDataFolder(), "locations.yml"));
|
FileManager.Config locationsConfig = fileManager.getConfig(new File(plugin.getDataFolder(), "locations.yml"));
|
||||||
FileConfiguration locationsConfigLoad = locationsConfig.getFileConfiguration();
|
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,
|
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