private String getPermissionsForPlayerAsString(Player p) { String s = ""; for (Check c : checks) { s = s + (!c.isActive() ? c.getName() + "* " : (c.skipCheck(p) ? c.getName() + " " : "")); } s = s + (!movingCheck.isActive() || movingCheck.allowFlying ? "flying* " : (hasPermission(p, PermissionData.PERMISSION_FLYING, movingCheck.checkOPs) ? "flying " : "")); s = s + (!movingCheck.isActive() || movingCheck.allowFakeSneak ? "fakesneak* " : (hasPermission(p, PermissionData.PERMISSION_FAKESNEAK, movingCheck.checkOPs) ? "fakesneak " : "")); s = s + (!movingCheck.isActive() || movingCheck.allowFastSwim ? "fastswim* " : (hasPermission(p, PermissionData.PERMISSION_FASTSWIM, movingCheck.checkOPs) ? "fastswim " : "")); s = s + (hasPermission(p, PermissionData.PERMISSION_NOTIFY, false) ? "notify " : ""); return s; }
private String getActiveChecksAsString() { String s = ""; for (Check c : checks) { s = s + (c.isActive() ? c.getName() + " " : ""); } s = s + (movingCheck.isActive() && !movingCheck.allowFlying ? "flying " : ""); s = s + (movingCheck.isActive() && !movingCheck.allowFakeSneak ? "fakesneak " : ""); s = s + (movingCheck.isActive() && !movingCheck.allowFastSwim ? "fastswim " : ""); return s; }