Tags
Creators
Details
1.8.0
Compatibility
Required content
Changes
The Leaderboard Update
What's Changed
- Add placeholder api support by @Fedox-die-Ente in https://github.com/HologramLib/HologramLib/pull/37
- Leaderboards and more by @maximjsx in https://github.com/HologramLib/HologramLib/pull/40
- Introduced interactive hologram entities "InteractionBox" that respond to player interactions.
- Added customizable, multi-page leaderboard holograms with player head support and flexible formatting.
- Added player head rendering and caching utilities with asynchronous skin and head retrieval.
Breaking Changes in the API 🚨
If you are already using HologramLib's leaderboards, you MUST update your plugin before updating HologramLib on your server ⚠️
Everything regarding Leaderboards is new including imports!
Here is a small example:
Map<UUID, LeaderboardHologram.PlayerScore> scores = new HashMap<>();
LeaderboardHologram.LeaderboardOptions pvpOptions = LeaderboardHologram.LeaderboardOptions.builder()
.title("PvP Champions")
.suffix("Kills")
.showEmptyPlaces(false)
.maxDisplayEntries(10)
.sortOrder(LeaderboardHologram.SortOrder.DESCENDING)
.headMode(LeaderboardHologram.HeadMode.RESOURCEPACK)
.leaderboardType(LeaderboardHologram.LeaderboardType.ALL_PLAYER_HEADS)
.build();
LeaderboardHologram pvpLeaderboard = new LeaderboardHologram(pvpOptions, "pvp_lb");
pvpLeaderboard.setAllScores(scores);
/* You can combine the leaderboard with others in a paginated leaderboard
but you can also just spawn the pvpLeaderboard for example
directly using hologramManager.spawn(pvpLeaderboard, location)
*/
PagedLeaderboard pagedLeaderboard = new PagedLeaderboard("paged_holo")
.addPage(pvpLeaderboard)
.addPage(<... another page>)
.setArrowBackgrounds(pvpLeaderboard.getBackgroundHologram().getBackgroundColor())
.setLeftArrowText("<red><<")
.setRightArrowText("<red>>>")
.setArrowOffset(3.5)
.setClickSounds(Sound.BLOCK_AMETHYST_CLUSTER_FALL, Sound.BLOCK_AMETHYST_CLUSTER_FALL)
.addPage(economyLeaderboard)
.rotate(0);
hologramManager.spawn(pagedLeaderboard, location);
For the resourcepack option you also need the resourcepack zip file from below on your server.
[!NOTE]
The wiki was partially updated already
New Contributors
- @Fedox-die-Ente made their first contribution in https://github.com/HologramLib/HologramLib/pull/37
Full Changelog: https://github.com/HologramLib/HologramLib/compare/1.7.7...1.8.0
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:bDTfffy3:U3q5cOEm"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:bDTfffy3:U3q5cOEm"
}

