Fixed duplicate users potentially being added

This commit is contained in:
Jesse Boyd 2014-10-18 11:33:48 -07:00
parent 96fb8cfab9
commit 6c614d1eec

View File

@ -219,7 +219,9 @@ public class Plot implements Cloneable {
* @param uuid * @param uuid
*/ */
public void addDenied(UUID uuid) { public void addDenied(UUID uuid) {
this.denied.add(uuid); if (!denied.contains(uuid)) {
this.denied.add(uuid);
}
} }
/** /**
@ -228,7 +230,9 @@ public class Plot implements Cloneable {
* @param uuid * @param uuid
*/ */
public void addHelper(UUID uuid) { public void addHelper(UUID uuid) {
this.helpers.add(uuid); if (!helpers.contains(uuid)) {
this.helpers.add(uuid);
}
} }
/** /**
@ -237,7 +241,9 @@ public class Plot implements Cloneable {
* @param uuid * @param uuid
*/ */
public void addTrusted(UUID uuid) { public void addTrusted(UUID uuid) {
this.trusted.add(uuid); if (!trusted.contains(uuid)) {
this.trusted.add(uuid);
}
} }
/** /**