t3hk0d3/PermissionsEx — Issue #134: SuperPerms fail depending on plugin load order
Author: Evenprime
Created: 2011-11-21 16:36:03+00:00
State: open

This one is kind of obscure. It seems that the order in which plugins get loaded influences the outcome of "player.hasPermission(...)" for no good reason.

Steps to reproduce:

1. Take a plugin X that uses SuperPerms and defines a parent->child relation
2. Give a player the parent node
3. Run the server, check child permission with player.hasPermission(...), it returns "true" (correct) if the plugin got loaded before "PermissionsCompat" got loaded, "false" otherwise.
4. If plugin X gets loaded before, you can force it to get loaded after "PermissionsCompat" by adding "softdepend: [ Permissions]" to its plugin.yml (ideal for testing this).

I could reproduce this any number of times with PermissionsEx 1.16. If the plugin X gets loaded after "PermissionsCompat", parent->child relations are not working at all. If it gets loaded before "PermissionsCompat", they work.

I don't know why this happens, and it happens even if plugin X doesn't use the PermissionsCompat at all.