Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit 9d6768d

Browse files
author
zml
committed
Fix UUID convert command. Closes #1692
1 parent 7aab742 commit 9d6768d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/ru/tehkode/permissions/bukkit/commands/UtilityCommands.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
import java.io.File;
4040
import java.util.Collection;
41+
import java.util.HashSet;
4142
import java.util.Iterator;
4243
import java.util.List;
4344
import java.util.Map;
@@ -165,8 +166,8 @@ public void convertUUID(final PermissionsEx plugin, final CommandSender sender,
165166
return;
166167
}
167168
final ProfileRepository repo = new HttpProfileRepository("minecraft");
168-
final Collection<String> userIdentifiers = backend.getUserIdentifiers();
169-
for (Iterator<String> it = backend.getUserIdentifiers().iterator(); it.hasNext(); ) {
169+
final Collection<String> userIdentifiers = new HashSet<>(backend.getUserIdentifiers());
170+
for (Iterator<String> it = userIdentifiers.iterator(); it.hasNext(); ) {
170171
try {
171172
UUID.fromString(it.next());
172173
it.remove();

0 commit comments

Comments
 (0)