COWMODSКаталог модов

HologramLib | Leaderboards & Custom Holograms

Packet-based text display library with animations, leaderboards, emojis, minimessage, and more!

Автор: maximjsx9,2 тыс.34обновлён 30 окт. 2025 г.
БиблиотекиТехнологииУтилиты

Описание

FOLIA ✅ PAPER ✅ PURPUR ✅ 1.19.4 - 1.21.5 ✅

Version Join Discord Server Version jitpack
HologramLib

An easy-to-use, packet-based text/item/block display hologram API with MiniMessage and emoji support.

FEATURES

  • Text, Block & Item Holograms
  • Text animations
  • Minimessage support
  • Packet based
  • Per player holograms
  • Leaderboard generators
  • Advanced hologram customization
  • Attachment and parenting support
  • Flexible rendering modes
DISCLAIMER This API only works on 1.19.4+
The holograms do not work for Bedrock players
There can be some issues when using spigot on older versions (Preferably use Paper or a fork of it)
It's just a Java API. This plugin does not work standalone.

SETUP

  • Download the plugin .jar
  • Download Packet Events
  • Upload the .jar files onto your server (yourserver/plugins folder)
  • Add the plugin as a dependency to your plugin and use it

PROJECT SETUP

Gradle installation

repositories {
  maven { url 'https://jitpack.io' }
}

dependencies {
  compileOnly 'com.github.HologramLib:HologramLib:1.7.6'
}

Maven installation

<repository>
  <id>jitpack.io</id>
  <url>https://jitpack.io</url>
</repository>

<dependency>
  <groupId>com.github.HologramLib</groupId>
  <artifactId>HologramLib</artifactId>
  <version>1.7.6</version>
  <scope>provided</scope>
</dependency>

Add this to your plugin plugin.yml

depend:
  - HologramLib

Code examples

Getting the instance

private HologramManager hologramManager;

@Override
public void onLoad() {
    HologramLib.onLoad(this); /*Only needed if you shade HologramLib*/
}

@Override
public void onEnable() {
    hologramManager = HologramLib.getManager().orElse(null);
    if (hologramManager == null) {
        getLogger().severe("Failed to initialize HologramLib manager.");
        return;
    }
}

Creating a hologram

TextHologram hologram = new TextHologram("unique_id")
    .setMiniMessageText("<aqua>Hello world!")
    .setSeeThroughBlocks(false)
    .setBillboard(Display.Billboard.VERTICAL)
    .setShadow(true)
    .setScale(1.5F, 1.5F, 1.5F)
    .setTextOpacity((byte) 200)
    .setBackgroundColor(Color.fromARGB(60, 255, 236, 222).asARGB())
    .setAlignment(TextDisplay.TextAlignment.CENTER)
    .setViewRange(1.0)
    .setMaxLineWidth(200);

Spawning and despawning

hologramManager.spawn(hologram, <location>);
hologramManager.remove(hologram);

Animations

TextAnimation animation = new TextAnimation()
        .addFrame( "<red>First frame")
        .addFrame("<green>Second frame")
        .addFrame("Third frame\n" +
                "Second line in third frame")
        .addFrame("Last frame");
animation.setDelay(20L); // 1 second
animation.setDelay(20L * 2);
hologramManager.applyAnimation(this.hologram, animation);

Leaderboard

Map<Integer, String> leaderboardData = new LinkedHashMap<>() {{
    put(1, "MaximDe:1000");
    put(2, "dream:950");
    put(3, "BastiGHG:500");
    put(4, "Wichtiger:400");
    // ... more entries
}};

LeaderboardHologram leaderboard = hologramManager.generateLeaderboard(
        location,
        leaderboardData,
        LeaderboardHologram.LeaderboardOptions.builder()
                .title("Top Players - Kills")
                .showEmptyPlaces(true)
                .scale(1.2f)
                .maxDisplayEntries(10)
                .suffix("kills")
                .topPlayerHead(true)
                .build()
);

Wiki

Code examples & more https://github.com/HologramLib/HologramLib/wiki

Example/Showcase Plugin

https://github.com/HologramLib/ExamplePlugin

More info https://maximjsx.com/projects/hologramlib

Галерея

Paginated LeaderboardsBasic LeaderboardItem Hologram

Последние версии

Все версии →
release

HologramLib | Leaderboards & Custom Holograms ⚡ 1.8.3

1.8.3
30 окт. 2025 г.4,6 тыс.Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10folia, paper, purpur
Скачать
Что нового
## What's Changed - Bump depdendency versions - Bug fixes Skipped releases on Modrinth: - 1.8.2 Better number formatting in leaderboards by @RootException in #41 - 1.8.1 Dependency updates Updated version of FoliaLib Updated version of packetevents Updated version of EntityLib
release

HologramLib | Leaderboards & Custom Holograms ⚡ 1.8.0

1.8.0
3 сент. 2025 г.789Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8folia, paper, purpur
Скачать
Что нового
# 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: ```java 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. <a href="https://github.com/HologramLib/HologramLib/releases/download/1.8.0/HologramLib.Resourcepack.zip"> <img width="160px" src="https://github.com/HologramLib/Addons/blob/main/download_rp.svg" alt="Download"/> </a> > [!NOTE] > The wiki was partially updated already <img width="500" alt="image" src="https://github.com/user-attachments/assets/2752cf34-0f2a-4b1a-b8ed-a50c41ad5974" /> ## 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
release

HologramLib | Leaderboards & Custom Holograms ⚡ 1.7.7

1.7.7
25 июл. 2025 г.783Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5bukkit, paper, purpur, spigot
Скачать
Что нового
- Bugfixes - Attachement issues **Full Changelog**: https://github.com/HologramLib/HologramLib/compare/1.7.6...1.7.7
release

HologramLib | Leaderboards & Custom Holograms ⚡ 1.7.6

1.7.6
9 июл. 2025 г.364Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7folia, paper, purpur, spigot
Скачать
Что нового
# Changes - Added support for NOT_ATTACHED_PLAYER render mode that excludes attached players from viewing the hologram - Added Hologram#attachToPlayer(Player) **Full Changelog**: https://github.com/HologramLib/HologramLib/compare/1.7.5...1.7.6 Also included 1.7.5: * Adding attach and detach methods and setIsInvisible by @misieur in https://github.com/HologramLib/HologramLib/pull/34 * Adding a warning to the attach method in the Hologram class by @misieur in https://github.com/HologramLib/HologramLib/pull/35 * Bugfixes **Full Changelog**: https://github.com/HologramLib/HologramLib/compare/1.7.4...1.7.5
release

HologramLib | Leaderboards & Custom Holograms ⚡ 1.7.4

1.7.4
22 мая 2025 г.520Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5bukkit, paper, purpur, spigot
Скачать
Что нового
## What's Changed - Improved performance (thanks to @RootException) - Fixed alot of bugs * Async Update Task by @RootException in https://github.com/HologramLib/HologramLib/pull/32 * Code Cleanup by @RootException in https://github.com/HologramLib/HologramLib/pull/33 ## New Contributors * @RootException made their first contribution in https://github.com/HologramLib/HologramLib/pull/32 **Full Changelog**: https://github.com/HologramLib/HologramLib/compare/1.7.3...1.7.4
release

HologramLib | Leaderboards & Custom Holograms ⚡ 1.7.1

1.7.1
25 февр. 2025 г.659Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4folia, paper, purpur
Скачать
Что нового
## What's Changed * Add back `Hologram#getViewers()` and also an additional method `Hologram#getViewerUUIDs()` which is more efficient and just returns the viewers as UUID's **Full Changelog**: https://github.com/max1mde/HologramLib/compare/1.7.0...1.7.1
release

HologramLib | Leaderboards & Custom Holograms ⚡ 1.7.0

1.7.0
16 февр. 2025 г.82Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4folia, paper, purpur
Скачать
Что нового
## What's Changed * Fixed re-appearing issues for holograms * Wrapper entity implementation (EntityLib) by @max1mde in https://github.com/max1mde/HologramLib/pull/26 ## API Breaking Changes - Replaced `Hologram#nearbyEntityScanningDistance` with `Hologram#maxPlayerRenderDistanceSquared` (Default value is now 62500) **Full Changelog**: https://github.com/max1mde/HologramLib/compare/1.6.9...1.7.0
release

HologramLib | Leaderboards & Custom Holograms ⚡ 1.6.9

1.6.9
12 февр. 2025 г.65Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3folia, paper, purpur
Скачать
Что нового
## What's Changed - Fixed: Hologram removal issue - https://github.com/max1mde/HologramLib/issues/23 - Using BukkitTask for support all platforms by @WhyZerVellasskx in https://github.com/max1mde/HologramLib/pull/24 Dependency: ``` com.github.max1mde:HologramLib:1.6.9 ``` **Full Changelog**: https://github.com/max1mde/HologramLib/compare/1.6.8...1.6.9
release

HologramLib | Leaderboards & Custom Holograms ⚡ 1.6.8

1.6.8
22 янв. 2025 г.196Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4folia, paper, purpur
Скачать
Что нового
## What's Changed - Replaced `distance` check with `distanceSquared` in `Hologram.java` New methods in HologramManager - `hologramExists(id)` - `hologramExists(hologram)` - `getHologramIds()` ``` com.github.max1mde:HologramLib:1.6.8 ``` **Full Changelog**: https://github.com/max1mde/HologramLib/compare/1.6.6...1.6.8
release

HologramLib | Leaderboards & Custom Holograms ⚡ 1.6.6

1.6.6
21 янв. 2025 г.44Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4folia, paper, purpur
Скачать
Что нового
## What's Changed - fix: Rendering issues * fix: teleport & addAllViewers in Hologram.java by @max1mde in https://github.com/max1mde/HologramLib/pull/21 **Full Changelog**: https://github.com/max1mde/HologramLib/compare/1.6.4...1.6.6