Class InviteCode

java.lang.Object
org.kingdoms.constants.group.model.InviteCode

public class InviteCode extends Object
  • Constructor Details

    • InviteCode

      public InviteCode(String code, long createdAt, long expiration, UUID createdBy, Set<UUID> usedBy, int uses)
  • Method Details

    • getUses

      public int getUses()
    • isAllUsed

      public boolean isAllUsed()
    • getCreator

      public org.bukkit.OfflinePlayer getCreator()
    • getCreatedBy

      public UUID getCreatedBy()
    • redeemFor

      public void redeemFor(long expiresIn)
    • getUsedBy

      public Set<UUID> getUsedBy()
    • setUses

      public void setUses(int uses)
    • hasExpired

      public boolean hasExpired()
    • getExpiration

      public long getExpiration()
    • getCreatedAt

      public long getCreatedAt()
    • getCode

      public String getCode()