Class CooldownCaption<S>

java.lang.Object
io.github.mqzn.commands.base.cooldown.CooldownCaption<S>
All Implemented Interfaces:
Caption<S>

public final class CooldownCaption<S> extends Object implements Caption<S>
  • Constructor Details

    • CooldownCaption

      public CooldownCaption()
  • Method Details

    • formatUnit

      public static String formatUnit(TimeUnit unit)
    • calculateRemainingTime

      public static long calculateRemainingTime(long lastTime, CommandCooldown commandCooldown)
    • key

      @NotNull public @NotNull CaptionKey key()
      Specified by:
      key in interface Caption<S>
    • message

      @NotNull public @NotNull net.kyori.adventure.text.TextComponent message(S sender, Context<S> context, Throwable exception)
      Specified by:
      message in interface Caption<S>
    • cooldownMessage

      public net.kyori.adventure.text.TextComponent cooldownMessage(long time, TimeUnit unit, Context<S> context)