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:


Holograms

The CheatBreaker Client and Lunar Client allow the server to send holograms. Holograms get cleared whenever the client switches server or world.

Sending Holograms

To send a client a hologram you use LunarBreakerAPI.getInstance().addHologram(Player player, UUID id, Vector position, String[] lines)

Updating a hologram

To update an existing hologram you use LunarBreakerAPI.getInstance().updateHologram(Player player, UUID id, String[] lines)

Removing a hologram

To remove an existing hologram you use LunarBreakerAPI.getInstance().removeHologram(Player player, UUID id)

Notifications

The CheatBreaker Client and Lunar Client allow the server to send notifactions.

Sending a Notification

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)

Nametags

The CheatBreaker Client and Lunar Client allow the server to update players nametags.

Overriding a Nametag

To override a nametage you use LunarBreakerAPI.getInstance().overrideNametag(Player target, List<String> nametag, Player viewer)

Resetting a Nametag

To reset a nametage you use LunarBreakerAPI.getInstance().resetNametag(Player target, Player viewer)

Hide a Nametag

To hide a nametage you use LunarBreakerAPI.getInstance().hideNametag(Player target, Player viewer)

Waypoints

The CheatBreaker Client and Lunar Client allow the server to send waypoints.

Sending Waypoints

To send a client a server waypoint you use LunarBreakerAPI.getInstance().sendWaypoint(Player player, CBWaypoint waypoint)

Removing Waypoints

To remove a waypoint on the client use LunarBreakerAPI.getInstance().removeWaypoint(Player player, CBWaypoint waypoint)

Cooldowns

The CheatBreaker Client and Lunar Client allow the server to send cooldowns.

Sending Cooldowns

To send a client a cooldown you use LunarBreakerAPI.getInstance().sendCooldown(Player player, CBCooldown cooldown)

Clearing Cooldowns

To clear a cooldown use CheatBreakerAPI.getInstance().clearCooldown(Player player, CBCooldown cooldown)

Emotes

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)

Titles and Subtitles

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)

⚠️ **GitHub.com Fallback** ⚠️