mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-08-10 00:05:26 +02:00
Fixed duplicate users potentially being added
This commit is contained in:
@@ -219,8 +219,10 @@ public class Plot implements Cloneable {
|
||||
* @param uuid
|
||||
*/
|
||||
public void addDenied(UUID uuid) {
|
||||
if (!denied.contains(uuid)) {
|
||||
this.denied.add(uuid);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add someone as a helper (use DBFunc as well)
|
||||
@@ -228,8 +230,10 @@ public class Plot implements Cloneable {
|
||||
* @param uuid
|
||||
*/
|
||||
public void addHelper(UUID uuid) {
|
||||
if (!helpers.contains(uuid)) {
|
||||
this.helpers.add(uuid);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add someone as a trusted user (use DBFunc as well)
|
||||
@@ -237,8 +241,10 @@ public class Plot implements Cloneable {
|
||||
* @param uuid
|
||||
*/
|
||||
public void addTrusted(UUID uuid) {
|
||||
if (!trusted.contains(uuid)) {
|
||||
this.trusted.add(uuid);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get plot display name
|
||||
|
Reference in New Issue
Block a user