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
@@ -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;
}