From b72e5f5437ff0e93169dc2179b98184c861cdc72 Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 14 Nov 2016 22:50:11 +0000 Subject: [PATCH] Update plugin.yml to make LuckPerms always enable before Vault --- bukkit/src/main/resources/plugin.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/resources/plugin.yml b/bukkit/src/main/resources/plugin.yml index 63d6efc01..a7d27daae 100644 --- a/bukkit/src/main/resources/plugin.yml +++ b/bukkit/src/main/resources/plugin.yml @@ -6,7 +6,15 @@ website: https://github.com/lucko/LuckPerms main: me.lucko.luckperms.bukkit.LPBukkitPlugin load: STARTUP -softdepend: [PermissionsEx, GroupManager, PowerfulPerms, zPermissions, bPermissions] # For migration + +# This means that all plugins that (soft-)depend on Vault, depend on LuckPerms too. +# It in turn fixes issues where plugins using Vault cache the provided instance when their plugin enables, or +# when they check for the presence of a service provider, before LuckPerms has enabled. +loadbefore: [Vault] + +# These are all soft dependencies for the migration feature. We check to see if these plugins are enabled +# when setting up LuckPerms commands. That way, commands only appear if the corresponding plugin is loaded. +softdepend: [PermissionsEx, GroupManager, PowerfulPerms, zPermissions, bPermissions] commands: luckperms: @@ -14,4 +22,5 @@ commands: aliases: [perms, permissions, lp, p, perm] -# Permissions are registered programmatically instead of here. \ No newline at end of file +# Permissions are registered programmatically instead of here. +# See: the last method in me.lucko.luckperms.bukkit.LPBukkitPlugin