Skip to content

Client features

Callum edited this page Jan 7, 2021 · 2 revisions

With LunarBreakerAPI2, you can send Borders, Cooldowns, Notifications and more to players who are running the CheatBreaker Client and Lunar Client.


Table of Contents:


Borders

The CheatBreaker Client and Lunar Client allow the server to send borders. Borders allow players to see a region of where they are meant to be.

Creating Borders

To create a border you use new Border(String id, String world, boolean cancelsExit, boolean canShrinkExpand, int color, double minX, double minZ, double maxX, double maxZ)

Sending Borders

To send a client a border you use LunarBreakerAPI.getInstance().getBorderHandler().sendBorder(Player player, Border border)

Updating a Border

To update an existing border you use LunarBreakerAPI.getInstance().getBorderHandler().updateBorder(Player player, String id, double minX, double minZ, double maxX, double maxZ)

Removing a Border

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

Bossbars

Lunar Client allow the server to send borders. Borders allow players to see a region of where they are meant to be.

Set Bossbar

To send a border you use LunarBreakerAPI.getInstance().getBossbarHandler().setBossbar(Player player, String text, float health)

Unset Bossbar

To remove a bossbar you use LunarBreakerAPI.getInstance().getBossbarHandler().unsetBossbar(Player player)

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().getCooldownHandler().sendCooldown(Player player, Cooldown cooldown)

Clearing Cooldowns

To clear a cooldown use LunarBreakerAPI.getInstance().getCooldownHandler().removeCooldown(Player player, Cooldown cooldown)

Emotes (No longer supported)

Lunar Client allow the server to send emotes for the players to see.

Performing Emotes

To peform an emote use LunarBreakerAPI.getInstance().getEmoteHandler().performEmote(Player player, int emoteId)

Ghosts

The CheatBreaker Client Lunar Client allow the server to set players to have a transparent effect.

Creating Ghosts

To create a ghost you use new Ghost(List<UUID> ghostedPlayers, List<UUID> unGhostedPlayers)

Sending Borders

To send a client a list of ghosts you use LunarBreakerAPI.getInstance().getGhostHandler().sendGhost(Player player, Ghost ghost)