Class PAFPlayerManagerMySQL
java.lang.Object
de.simonsator.partyandfriends.api.pafplayers.PAFPlayerManager
de.simonsator.partyandfriends.api.pafplayers.IDBasedPAFPlayerManager
de.simonsator.partyandfriends.pafplayers.manager.PAFPlayerManagerMySQL
-
Constructor Summary
ConstructorDescriptionPAFPlayerManagerMySQL
(MySQLData pMySQLData, PoolData pPoolData) PAFPlayerManagerMySQL
(MySQLData pMySQLData, PoolData pPoolData, Object pJedisPool) -
Method Summary
Methods inherited from class de.simonsator.partyandfriends.api.pafplayers.PAFPlayerManager
getInstance
-
Constructor Details
-
PAFPlayerManagerMySQL
- Throws:
SQLException
-
PAFPlayerManagerMySQL
public PAFPlayerManagerMySQL(MySQLData pMySQLData, PoolData pPoolData, Object pJedisPool) throws SQLException - Throws:
SQLException
-
-
Method Details
-
getConnection
-
getPlayer
- Specified by:
getPlayer
in classPAFPlayerManager
- 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
- Specified by:
getPlayer
in classPAFPlayerManager
-
getPlayer
- Specified by:
getPlayer
in classPAFPlayerManager
- 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
- Specified by:
getPlayer
in classPAFPlayerManager
- Parameters:
playerDataSet
- The PlayerDataSet. Please make sure that the data set is complete- Returns:
- The PAFPlayer linked to this dataset
-
getPlayer
- Specified by:
getPlayer
in classIDBasedPAFPlayerManager
-
getPlayerNotOnlineOnBungeeCord
IMPORTANT!! only call after you have already checked that the player is not on this bungeecord- Parameters:
pData
- The player data- Returns:
- The PAFPlayer which is linked to this data
-