-
Notifications
You must be signed in to change notification settings - Fork 2
Client features
With LunarBreakerAPI2, you can send Borders, Cooldowns, Notifications 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 borders. Borders allow players to see a region of where they are meant to be.
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)
To send a client a border you use LunarBreakerAPI.getInstance().getBorderHandler().sendBorder(Player player, Border border)
To update an existing border you use LunarBreakerAPI.getInstance().getBorderHandler().updateBorder(Player player, String id, double minX, double minZ, double maxX, double maxZ)
To remove an existing border you use LunarBreakerAPI.getInstance().removeHologram(Player player, String id)
Lunar Client allow the server to send borders. Borders allow players to see a region of where they are meant to be.
To send a border you use LunarBreakerAPI.getInstance().getBossbarHandler().setBossbar(Player player, String text, float health)
To remove a bossbar you use LunarBreakerAPI.getInstance().getBossbarHandler().unsetBossbar(Player player)
The CheatBreaker Client and Lunar Client allow the server to send cooldowns.
To send a client a cooldown you use LunarBreakerAPI.getInstance().getCooldownHandler().sendCooldown(Player player, Cooldown cooldown)
To clear a cooldown use LunarBreakerAPI.getInstance().getCooldownHandler().removeCooldown(Player player, Cooldown cooldown)
Lunar Client allow the server to send emotes for the players to see.
To peform an emote use LunarBreakerAPI.getInstance().getEmoteHandler().performEmote(Player player, int emoteId)
The CheatBreaker Client Lunar Client allow the server to set players to have a transparent effect.
To create a ghost you use new Ghost(List<UUID> ghostedPlayers, List<UUID> unGhostedPlayers)
To send a client a list of ghosts you use LunarBreakerAPI.getInstance().getGhostHandler().sendGhost(Player player, Ghost ghost)