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; }
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; }