Class AdminList

java.lang.Object
dev.plex.admin.AdminList
All Implemented Interfaces:
PlexBase

public class AdminList extends Object implements PlexBase
Cached storage for Admin objects
See Also:
  • Field Details

    • admins

      private final Map<UUID,Admin> admins
      Key / Value storage, where the key is the unique ID of the admin
  • Constructor Details

    • AdminList

      public AdminList()
  • Method Details

    • addToCache

      public void addToCache(Admin admin)
      Adds the admin to cache
      Parameters:
      admin - The admin object
    • removeFromCache

      public void removeFromCache(UUID uuid)
      Removes an admin from the cache
      Parameters:
      uuid - The unique ID of the admin
      See Also:
    • getAllAdmins

      public List<String> getAllAdmins()
      Gathers every admins username (cached and in the database)
      Returns:
      An array list of the names of every admin
    • getAllAdminPlayers

      public List<PlexPlayer> getAllAdminPlayers()
      Gathers every admin (cached and in the database)
      Returns:
      An array list of the names of every admin