Class AdminList

java.lang.Object
dev.plex.admin.AdminList

public class AdminList extends Object
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 admin's username (cached and databsed)
      Returns:
      An array list of the names of every admin