t3hk0d3/PermissionsEx — Issue #97: Incompatibilities with plugins using Permissions 3.x
Author: oliverw92
Created: 2011-10-20 14:07:41+00:00
State: open

I've located some incompatibilities with plugins that use the Permissions 3.x API if you are using the PermissionsEx compatibility plugin. This is the P3.0 PermissionHandler: https://github.com/TheYeti/Permissions/blob/master/src/main/java/com/nijiko/permissions/PermissionHandler.java

As you can see there are a lot of different methods in there to the PermissionsCompat one: https://github.com/t3hk0d3/PermissionsCompat/blob/master/src/main/java/ru/tehkode/permissions/compat/PermissionHandler.java . The biggest problem that could really do with being resolved is that for p3.0 there is the method 'getPrimaryGroup'. At the moment plugins like HeroChat that use this method are becoming partially incompatible with PermissionsEx. For example I currently have an issue where a user is in 3 groups and PEX gives the wrong one to HeroChat, meaning that user can't talk in some channels. It also means that sometimes prefixes aren't right because it is being pulled off the wrong group.

This issue could be solved if you returned the group with the lowest rank number in the getPrimaryGroup method.