mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Fixed duplicate users potentially being added
This commit is contained in:
parent
96fb8cfab9
commit
6c614d1eec
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user