mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-01 07:36:42 +00:00
test
This commit is contained in:
23
Plex-API/src/main/java/dev/plex/api/AdminAPI.java
Normal file
23
Plex-API/src/main/java/dev/plex/api/AdminAPI.java
Normal 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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user