mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-03 14:38:56 +00:00
AlathraRoles port
This commit is contained in:
1 parent
1f0869d4a9
commit
0b9784cf7b
10 files changed
+836
-4
No files matched your search
@@ -71,6 +71,9 @@ public class LuckPermsHook {
|
||||
User user = um.getUser(playername);
|
||||
for (Group group : user.getInheritedGroups(user.getQueryOptions())) {
|
||||
String groupPrefix = group.getCachedData().getMetaData().getPrefix();
|
||||
if (groupPrefix == null) {
|
||||
groupPrefix = "";
|
||||
}
|
||||
if (groupPrefix.equals(prefix)) {
|
||||
isGroupPrefix = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user