Package dev.plex.admin
Class AdminList
java.lang.Object
dev.plex.admin.AdminList
Cached storage for Admin objects
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToCache
(Admin admin) Adds the admin to cacheGathers every admin's username (cached and databsed)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 databsed)- Returns:
- An array list of the names of every admin
-