-
Notifications
You must be signed in to change notification settings - Fork 0
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)
Please note that the MiniMap is disallowed by default on all servers unless you send the packet that allows it
To allow the use of the minimap module you use CheatBreakerAPI.getInstance().setMinimapStatus(Player player, MinimapStatus.NEUTRAL)
To disable the minimap module you use CheatBreakerAPI.getInstance().setMinimapStatus(Player player, MinimapStatus.FORCED_OFF)
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)
Sending this packet allows you to bring a more 1.7 PvP experience to your 1.8 players (legacy combat is off by default)
To enable legacy combat you use CheatBreakerAPI.getInstance().setLegacyCombat(Player player, true)
To disable legacy combat you use CheatBreakerAPI.getInstance().setLegacyCombat(Player player, false)