Пример #1
0
 @Override
 public final boolean inGroup(final String group) {
   if (groupCache.isPrepared()) {
     return groupCache.isGroupPresent(group);
   } else {
     return user.inGroup(group);
   }
 }
Пример #2
0
 @Override
 public final boolean prepare() {
   if (groupCache.isPrepared()) {
     groupCache.clear();
   }
   groupCache.addPresentGroups(user.getOwnParentIdentifiers()); // TODO: VERIFY SANITY.
   return true;
 }
Пример #3
0
 @Override
 public final void removeGroup(final String group) {
   if (groupCache.isPrepared()) {
     groupCache.removeGroup(group);
   } else {
     user.removeGroup(group);
     if (user.isVirtual()) {
       perms.changed.add(playerName);
     }
   }
 }