mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
Fixed duplicate users potentially being added
This commit is contained in:
parent
96fb8cfab9
commit
6c614d1eec
1 changed files with 9 additions and 3 deletions
|
@ -219,7 +219,9 @@ public class Plot implements Cloneable {
|
|||
* @param 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
|
||||
*/
|
||||
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
|
||||
*/
|
||||
public void addTrusted(UUID uuid) {
|
||||
this.trusted.add(uuid);
|
||||
if (!trusted.contains(uuid)) {
|
||||
this.trusted.add(uuid);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue