-
Notifications
You must be signed in to change notification settings - Fork 9
Client features
With the CheatBreaker API, you can display Notifications, Waypoints, Cooldown Timers, and more to players who are running the CheatBreaker client.
Table of Contents:
The CheatBreaker client allows the server to send holograms. Holograms get cleared whenever the client switches server or world.
To send a client a hologram you use CheatBreakerAPI.getInstance().addHologram(Player player, UUID id, Vector position, String[] lines)
To update an existing hologram you use CheatBreakerAPI.getInstance().updateHologram(Player player, UUID id, String[] lines)
To remove an existing hologram you use CheatBreakerAPI.getInstance().removeHologram(Player player, UUID id)
To send a notification you use CheatBreakerAPI.getInstance().sendNotification(Player player, CBNotification notification)
Alternatively you can use CheatBreakerAPI.getInstance().sendNotificationOrFallback(Player player, CBNotification notification, Runnable fallback)
To send a client a server waypoint you use CheatBreakerAPI.getInstance().sendWaypoint(Player player, CBWaypoint waypoint)
To remove a waypoint on the client use CheatBreakerAPI.getInstance().removeWaypoint(Player player, CBWaypoint waypoint)
To send a client a cooldown you use CheatBreakerAPI.getInstance().sendCooldown(Player player, CBCooldown cooldown)
To clear a cooldown use CheatBreakerAPI.getInstance().clearCooldown(Player player, CBCooldown cooldown)
Like in newer Minecraft versions you can send titles and subtitles to users running the CheatBreaker client. Titles appear on the center of a users screen with subtitles below them.
To send a client a title or subtitle you use
CheatBreakerAPI.getInstance().sendTitle(Player player, TitleType type, String message, Duration displayTime)