mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 09:37:37 +00:00
test
This commit is contained in:
parent
067094130f
commit
f73c63f1e7
@ -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("")
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
}
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user