Class PAFPlayerManager
java.lang.Object
de.simonsator.partyandfriends.api.pafplayers.PAFPlayerManager
- Direct Known Subclasses:
IDBasedPAFPlayerManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PAFPlayerManager
abstract PAFPlayer
getPlayer
(PlayerDataSet playerDataSet) abstract PAFPlayer
abstract PAFPlayer
abstract OnlinePAFPlayer
getPlayer
(net.md_5.bungee.api.connection.ProxiedPlayer pPlayer)
-
Constructor Details
-
PAFPlayerManager
public PAFPlayerManager()
-
-
Method Details
-
getInstance
-
getPlayer
- Parameters:
pPlayer
- The name of the player- Returns:
- Returns either a PAFPlayer if the player is offline/does not exist
(check with
PAFPlayer.doesExist()
) or anOnlinePAFPlayer
if the player is online
-
getPlayer
-
getPlayer
- Parameters:
pPlayer
- The UUID of the player- Returns:
- Returns either a PAFPlayer if the player is offline/does not exist
(check with
PAFPlayer.doesExist()
) or anOnlinePAFPlayer
if the player is online
-
getPlayer
- Parameters:
playerDataSet
- The PlayerDataSet. Please make sure that the data set is complete- Returns:
- The PAFPlayer linked to this dataset
-