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

View File

@ -2,6 +2,11 @@ group = "dev.plex"
version = rootProject.version version = rootProject.version
description = "Plex-API" description = "Plex-API"
dependencies {
implementation project(":Plex-Core")
compileOnly "io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT"
}
tasks.jar { tasks.jar {
archiveBaseName.set("Plex-API") archiveBaseName.set("Plex-API")
archiveVersion.set("") archiveVersion.set("")

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();
}
}

View File

@ -54,7 +54,7 @@ public class AdminList extends PlexBase
} }
/** /**
* Gathers every admin's username (cached and in the database) * Gathers every admins username (cached and in the database)
* *
* @return An array list of the names of every admin * @return An array list of the names of every admin
*/ */