Package dev.plex.admin
Class AdminList
java.lang.Object
dev.plex.PlexBase
dev.plex.admin.AdminList
Cached storage for Admin objects
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionKey / Value storage, where the key is the unique ID of the admin -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToCache
(Admin admin) Adds the admin to cacheGathers every admin (cached and in the database)Gathers every admin's username (cached and in the database)void
removeFromCache
(UUID uuid) Removes an admin from the cache
-
Field Details
-
admins
Key / Value storage, where the key is the unique ID of the admin
-
-
Constructor Details
-
AdminList
public AdminList()
-
-
Method Details
-
addToCache
Adds the admin to cache- Parameters:
admin
- The admin object
-
removeFromCache
Removes an admin from the cache- Parameters:
uuid
- The unique ID of the admin- See Also:
-
getAllAdmins
Gathers every admin's username (cached and in the database)- Returns:
- An array list of the names of every admin
-
getAllAdminPlayers
Gathers every admin (cached and in the database)- Returns:
- An array list of the names of every admin
-