Class PAFPlayerMySQL
java.lang.Object
de.simonsator.partyandfriends.api.pafplayers.PAFPlayerClass
de.simonsator.partyandfriends.pafplayers.mysql.PAFPlayerMySQL
- All Implemented Interfaces:
IDBasedPAFPlayer
,PAFPlayer
- Direct Known Subclasses:
OnlinePAFPlayerMySQL
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addFriendNoMultiCoreEnhancement
(PAFPlayer pPlayer) boolean
void
denyRequest
(PAFPlayer pPlayer) void
boolean
int
long
getName()
int
int
getSettingsWorth
(int pSettingsID) boolean
hasPermission
(String pPermission) boolean
hasRequestFrom
(PAFPlayer pPlayer) boolean
isAFriendOf
(PAFPlayer pPlayer) void
removeFriend
(PAFPlayer pPlayer) void
void
sendFriendRequest
(PAFPlayer pPlayer) void
void
setLastPlayerWroteFrom
(PAFPlayer pLastWroteTo) static void
setMultiCoreEnhancement
(boolean pUseMultiCoreEnhancment) void
setSetting
(int pSettingsID, int pNewWorth) toString()
void
Methods inherited from class de.simonsator.partyandfriends.api.pafplayers.PAFPlayerClass
equals, getDisplayName, getDisplayNameProvider, getServerConnector, hashCode, isOnline, sendMessage, sendMessage, sendMessage, sendMessage, sendPacket, sendPacket, setDisplayNameProvider, setServerConnector
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.simonsator.partyandfriends.api.pafplayers.PAFPlayer
getDisplayName, isOnline, sendMessage, sendMessage, sendMessage, sendMessage, sendPacket, sendPacket
-
Field Details
-
id
protected int id
-
-
Constructor Details
-
PAFPlayerMySQL
public PAFPlayerMySQL(int pID) -
PAFPlayerMySQL
-
-
Method Details
-
setMultiCoreEnhancement
public static void setMultiCoreEnhancement(boolean pUseMultiCoreEnhancment) -
getName
-
getPlayerID
public int getPlayerID()- Specified by:
getPlayerID
in interfaceIDBasedPAFPlayer
-
getFriends
- Specified by:
getFriends
in interfacePAFPlayer
-
getUniqueId
- Specified by:
getUniqueId
in interfacePAFPlayer
-
toString
- Overrides:
toString
in classPAFPlayerClass
-
doesExist
public boolean doesExist() -
getSettingsWorth
public int getSettingsWorth(int pSettingsID) - Specified by:
getSettingsWorth
in interfacePAFPlayer
-
getRequests
- Specified by:
getRequests
in interfacePAFPlayer
-
getFriendRequestCount
public int getFriendRequestCount()- Specified by:
getFriendRequestCount
in interfacePAFPlayer
-
hasRequestFrom
- Specified by:
hasRequestFrom
in interfacePAFPlayer
-
hasPermission
- Specified by:
hasPermission
in interfacePAFPlayer
-
denyRequest
- Specified by:
denyRequest
in interfacePAFPlayer
-
denyRequestNoMultiCoreEnhancement
-
isAFriendOf
- Specified by:
isAFriendOf
in interfacePAFPlayer
-
getLastPlayerWroteTo
- Specified by:
getLastPlayerWroteTo
in interfacePAFPlayer
-
sendFriendRequest
- Specified by:
sendFriendRequest
in interfacePAFPlayer
-
sendFriendRequestNoMultiCoreEnhancement
-
addFriend
-
addFriendNoMultiCoreEnhancement
-
getPAFPlayer
- Specified by:
getPAFPlayer
in interfacePAFPlayer
-
removeFriend
- Specified by:
removeFriend
in interfacePAFPlayer
-
removeFriendNoMultiCoreEnhancement
-
setSetting
public void setSetting(int pSettingsID, int pNewWorth) - Specified by:
setSetting
in interfacePAFPlayer
-
setLastPlayerWroteFrom
- Specified by:
setLastPlayerWroteFrom
in interfacePAFPlayer
-
getLastOnline
public long getLastOnline()- Specified by:
getLastOnline
in interfacePAFPlayer
-
deleteAccount
public boolean deleteAccount()- Specified by:
deleteAccount
in interfacePAFPlayer
-
updateLastOnline
public void updateLastOnline()- Specified by:
updateLastOnline
in interfacePAFPlayer
-