Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }