This commit is contained in:
2022-04-10 00:46:17 -05:00
parent 067094130f
commit f73c63f1e7
3 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,23 @@
package dev.plex.api;
import dev.plex.PlexBase;
import dev.plex.player.PlexPlayer;
import java.util.List;
public class AdminAPI extends PlexBase
{
/**
* Gathers every admins username (cached and in the database)
*
* @return An array list of the names of every admin
*/
public List<String> getAllAdmins()
{
return plugin.getAdminList().getAllAdmins();
}
public List<PlexPlayer> getAllAdminPlayers()
{
return plugin.getAdminList().getAllAdminPlayers();
}
}