Changed ownership mapping from HashMap to ConcurrentHashMap to hopefully take care of reported ConcurrentModificicationException error; bugfix for faction admin not being able to bypass ownership if "ownedAreaModeratorsBypass" was set

This commit is contained in:
Brettflan
2011-08-22 15:13:12 -05:00
parent 697e0cf466
commit 409f98e1e6
3 changed files with 13 additions and 4 deletions

View File

@ -15,6 +15,14 @@ public enum Role {
this.nicename = nicename;
}
public boolean isAtLeast(Role role) {
return this.value >= role.value;
}
public boolean isAtMost(Role role) {
return this.value <= role.value;
}
@Override
public String toString() {
return this.nicename;