Class PlayerListElement

java.lang.Object
de.simonsator.partyandfriends.utilities.PlayerListElement
All Implemented Interfaces:
Comparable<PlayerListElement>

public class PlayerListElement extends Object implements Comparable<PlayerListElement>
  • Constructor Details

    • PlayerListElement

      public PlayerListElement(PAFPlayer pPlayer)
  • Method Details

    • getFriendsAsPlayerListElement

      public static List<PlayerListElement> getFriendsAsPlayerListElement(OnlinePAFPlayer pCaller, int pSortType)
      Parameters:
      pCaller - The person for whom this list should be created
      pSortType - The sorting type. 0 is by last online, 1 is alphabetically, 2 is reverse alphabetic and 3 is by friendship duration
      Returns:
      A list of PlayerListElements
    • compareTo

      public int compareTo(PlayerListElement pCompare)
      Specified by:
      compareTo in interface Comparable<PlayerListElement>
    • getDisplayName

      public String getDisplayName()
    • getName

      public String getName()
    • getUniqueId

      public UUID getUniqueId()
    • isOnline

      public boolean isOnline()
    • getLastOnline

      public Long getLastOnline()
    • getServer

      public net.md_5.bungee.api.config.ServerInfo getServer()
    • getPlayer

      public PAFPlayer getPlayer()