java.lang.Object
com.hypixel.hytale.server.core.modules.accesscontrol.ban.AbstractBan
All Implemented Interfaces:
Ban, AccessProvider
Direct Known Subclasses:
InfiniteBan, TimedBan

abstract class AbstractBan extends Object implements Ban
  • Field Details

    • target

      protected final UUID target
    • by

      protected final UUID by
    • timestamp

      protected final Instant timestamp
    • reason

      @Nonnull protected final Optional<String> reason
  • Constructor Details

  • Method Details

    • getTarget

      public UUID getTarget()
      Specified by:
      getTarget in interface Ban
    • getBy

      public UUID getBy()
      Specified by:
      getBy in interface Ban
    • getTimestamp

      public Instant getTimestamp()
      Specified by:
      getTimestamp in interface Ban
    • getReason

      @Nonnull public Optional<String> getReason()
      Specified by:
      getReason in interface Ban
    • toJsonObject

      @Nonnull public com.google.gson.JsonObject toJsonObject()
      Specified by:
      toJsonObject in interface Ban