Interface FPlayerMySQL
- All Superinterfaces:
FPlayerSQL, SQL
- All Known Subinterfaces:
FPlayerMariaDB
MySQL-specific implementation of
FPlayerSQL.- Since:
- 1.10.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidinsertOrIgnore(int id, String uuid, String name) Inserts a player with the given ID, or does nothing if a conflict occurs.voidsetOfflineByServer(String server) Sets all players associated with the specified server to offline status.Methods inherited from interface FPlayerSQL
findById, findByIp, findByName, findByUUID, getAllPlayers, getOnlinePlayers, insert, update
-
Method Details
-
setOfflineByServer
Description copied from interface:FPlayerSQLSets all players associated with the specified server to offline status. Players without a server assignment or matching the given server will be set offline.- Specified by:
setOfflineByServerin interfaceFPlayerSQL- Parameters:
server- the server identifier to match against player server settings
-
insertOrIgnore
Description copied from interface:FPlayerSQLInserts a player with the given ID, or does nothing if a conflict occurs.- Specified by:
insertOrIgnorein interfaceFPlayerSQL- Parameters:
id- the player database IDuuid- the player UUIDname- the player name
-