Class UsageCooldown

java.lang.Object
studio.mevera.imperat.command.cooldown.UsageCooldown

@AvailableSince("1.0.0") public final class UsageCooldown extends Object
Represents a required cooldown of a CommandUsage
See Also:
  • Constructor Details

    • UsageCooldown

      public UsageCooldown(long value, TimeUnit unit, @Nullable @Nullable String permission)
      Parameters:
      value - the value for this
      unit - the unit for the time
  • Method Details

    • toDuration

      public Duration toDuration()
    • value

      public long value()
    • unit

      public TimeUnit unit()
    • permission

      @Nullable public @Nullable String permission()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object