Class CommandCooldown

java.lang.Object
io.github.mqzn.commands.base.cooldown.CommandCooldown

public final class CommandCooldown extends Object
  • Field Details

  • Constructor Details

    • CommandCooldown

      public CommandCooldown(long value, TimeUnit unit)
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • toMillis

      public long toMillis()
    • value

      public long value()
    • unit

      public TimeUnit unit()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object