Class TablePlayer

  • All Implemented Interfaces:
    java.lang.Comparable<TablePlayer>

    public class TablePlayer
    extends java.lang.Object
    implements java.lang.Comparable<TablePlayer>
    Represents a player displayed on a player table on players tab or /players page.
    • Method Detail

      • getPlayerUUID

        public java.util.UUID getPlayerUUID()
      • getName

        public java.util.Optional<java.lang.String> getName()
      • getCurrentActivityIndex

        public java.util.Optional<ActivityIndex> getCurrentActivityIndex()
      • getActivePlaytime

        public java.util.Optional<java.lang.Long> getActivePlaytime()
      • getSessionCount

        public java.util.Optional<java.lang.Integer> getSessionCount()
      • getRegistered

        public java.util.Optional<java.lang.Long> getRegistered()
      • getLastSeen

        public java.util.Optional<java.lang.Long> getLastSeen()
      • getGeolocation

        public java.util.Optional<java.lang.String> getGeolocation()
      • isBanned

        public boolean isBanned()
      • compareTo

        public int compareTo​(TablePlayer other)
        Specified by:
        compareTo in interface java.lang.Comparable<TablePlayer>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object