mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-29 04:04:43 +02:00
Lazy initialization
This commit is contained in:
@ -58,7 +58,7 @@ public class Undeny extends SubCommand {
|
||||
int count = 0;
|
||||
if (args[0].equals("unknown")) {
|
||||
ArrayList<UUID> toRemove = new ArrayList<>();
|
||||
for (UUID uuid : plot.denied) {
|
||||
for (UUID uuid : plot.getDenied()) {
|
||||
if (UUIDHandler.getName(uuid) == null) {
|
||||
toRemove.add(uuid);
|
||||
}
|
||||
@ -69,7 +69,7 @@ public class Undeny extends SubCommand {
|
||||
}
|
||||
}
|
||||
else if (args[0].equals("*")){
|
||||
for (UUID uuid : new ArrayList<>(plot.denied)) {
|
||||
for (UUID uuid : new ArrayList<>(plot.getDenied())) {
|
||||
plot.removeDenied(uuid);
|
||||
count++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user