Client features - LunarBreaker/LunarBreakerAPI GitHub Wiki
With the LunarBreaker API, you can display Notifications, Waypoints, Cooldown Timers, and more to players who are running the CheatBreaker Client and Lunar Client.
Table of Contents:
The CheatBreaker Client and Lunar Client allow the server to send holograms. Holograms get cleared whenever the client switches server or world.
To send a client a hologram you use LunarBreakerAPI.getInstance().addHologram(Player player, UUID id, Vector position, String[] lines)
To update an existing hologram you use LunarBreakerAPI.getInstance().updateHologram(Player player, UUID id, String[] lines)
To remove an existing hologram you use LunarBreakerAPI.getInstance().removeHologram(Player player, UUID id)
The CheatBreaker Client and Lunar Client allow the server to send notifactions.
To send a notification you use LunarBreakerAPI.getInstance().sendNotification(Player player, CBNotification notification)
Alternatively you can use LunarBreakerAPI.getInstance().sendNotificationOrFallback(Player player, CBNotification notification, Runnable fallback)
The CheatBreaker Client and Lunar Client allow the server to update players nametags.
To override a nametage you use LunarBreakerAPI.getInstance().overrideNametag(Player target, List<String> nametag, Player viewer)
To reset a nametage you use LunarBreakerAPI.getInstance().resetNametag(Player target, Player viewer)
To hide a nametage you use LunarBreakerAPI.getInstance().hideNametag(Player target, Player viewer)
The CheatBreaker Client and Lunar Client allow the server to send waypoints.
To send a client a server waypoint you use LunarBreakerAPI.getInstance().sendWaypoint(Player player, CBWaypoint waypoint)
To remove a waypoint on the client use LunarBreakerAPI.getInstance().removeWaypoint(Player player, CBWaypoint waypoint)
The CheatBreaker Client and Lunar Client allow the server to send cooldowns.
To send a client a cooldown you use LunarBreakerAPI.getInstance().sendCooldown(Player player, CBCooldown cooldown)
To clear a cooldown use CheatBreakerAPI.getInstance().clearCooldown(Player player, CBCooldown cooldown)
The CheatBreaker Client and Lunar Client allow the server to send emotes for the players to see.
To peform an emote use CheatBreakerAPI.getInstance().performEmote(Player player, int emoteId)
Like in newer Minecraft versions you can send titles and subtitles to users running the CheatBreaker Client and Lunar Client. Titles appear on the center of a users screen with subtitles below them.
To send a client a title or subtitle you use
LunarBreakerAPI.getInstance().sendTitle(Player player, TitleType type, String message, Duration displayTime)