Fix kyori, add permissionlist command, fix luckperms getting wrong context
This commit is contained in:
@@ -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")
|
||||
|
||||
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user