Fix kyori, add permissionlist command, fix luckperms getting wrong context

This commit is contained in:
ajgeiss0702
2021-08-02 22:33:47 -07:00
parent 9d1161247b
commit a01bd759d2
20 changed files with 137 additions and 17 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ plugins {
group = "us.ajg0702.queue.platforms.bungeecord"
repositories {
mavenLocal()
//mavenLocal()
mavenCentral()
maven { url = uri("https://repo.ajg0702.us") }
maven { url = uri("https://nexus.velocitypowered.com/repository/maven-public/") }
@@ -17,9 +17,9 @@ dependencies {
compileOnly("com.google.guava:guava:30.1.1-jre")
compileOnly("us.ajg0702:ajUtils:1.1.7")
compileOnly("net.md-5:bungeecord-api:1.14-SNAPSHOT")
compileOnly("net.md-5:bungeecord-api:1.16-R0.4")
compileOnly("net.kyori:adventure-text-minimessage:4.1.0-SNAPSHOT")
compileOnly("net.kyori:adventure-text-minimessage:4.0.0-SNAPSHOT")
implementation("net.kyori:adventure-platform-bungeecord:4.0.0-SNAPSHOT")
compileOnly("net.kyori:adventure-text-serializer-plain:4.0.0-SNAPSHOT")
@@ -36,6 +36,8 @@ public class BungeeQueue extends Plugin implements Listener {
QueueLogger logger = new BungeeLogger(getLogger());
File dataFolder = getDataFolder();
adventure = BungeeAudiences.create(this);
main = new QueueMain(
logger,
new BungeeMethods(this, getProxy(), logger),
@@ -59,15 +61,13 @@ public class BungeeQueue extends Plugin implements Listener {
getProxy().getPluginManager().registerListener(this, this);
adventure = BungeeAudiences.create(this);
}
private static BungeeAudiences adventure;
public static @NonNull BungeeAudiences adventure() {
if(adventure == null) {
throw new IllegalStateException("Cannot retrieve audience provider while plugin is not enabled");
throw new IllegalStateException("Cannot retrieve audience provider. Not loaded yet.");
}
return adventure;
}
+2 -2
View File
@@ -6,7 +6,7 @@ plugins {
group = "us.ajg0702.queue.platforms.velocity"
repositories {
mavenLocal()
//mavenLocal()
mavenCentral()
maven { url = uri("https://repo.ajg0702.us") }
maven { url = uri("https://nexus.velocitypowered.com/repository/maven-public/") }
@@ -19,7 +19,7 @@ dependencies {
compileOnly("com.velocitypowered:velocity-api:3.0.0")
annotationProcessor("com.velocitypowered:velocity-api:3.0.0")
compileOnly("net.kyori:adventure-text-minimessage:4.1.0-SNAPSHOT")
compileOnly("net.kyori:adventure-text-minimessage:4.0.0-SNAPSHOT")
implementation(project(":common"))
implementation(project(":api"))