Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 347 Bytes

examples.md

File metadata and controls

10 lines (9 loc) · 347 Bytes
CheatBreakerApi cbApi = (CheatBreakerApi) Bukkit.getPluginManager().getPlugin("CheatBreakerAPI");
String message = ChatColor.GREEN + "You have joined the HCTeams queue.";

cbApi.sendNotificationOrFallback(
    event.getPlayer(),
    new CBNotification(message, 1, TimeUnit.SECONDS),
    () -> event.getPlayer().sendMessage(message)
);