Пример #1
0
 public boolean isTester() {
   Account account = App.settings.getAccount();
   if (account == null) {
     return false;
   }
   for (String tester : this.testers) {
     if (tester.equalsIgnoreCase(account.getMinecraftUsername())) {
       return true;
     }
   }
   return false;
 }
Пример #2
0
 public boolean isAllowedPlayer() {
   if (this.type != PackType.PRIVATE) {
     return true;
   }
   Account account = App.settings.getAccount();
   if (account == null) {
     return false;
   }
   for (String player : this.allowedPlayers) {
     if (player.equalsIgnoreCase(account.getMinecraftUsername())) {
       return true;
     }
   }
   return false;
 }