mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 17:47:34 +01:00
No need for a new array.
This commit is contained in:
parent
1438230b70
commit
353253b9c5
@ -1026,9 +1026,7 @@ public class WorldDataHolder {
|
|||||||
synchronized (ph.getUsers()) {
|
synchronized (ph.getUsers()) {
|
||||||
|
|
||||||
// A sorted list of users.
|
// A sorted list of users.
|
||||||
ArrayList<String> names = new ArrayList<String>(new TreeSet<String>(ph.getUsers().keySet()));
|
for (String userKey : new TreeSet<String>(ph.getUsers().keySet())) {
|
||||||
|
|
||||||
for (String userKey : names) {
|
|
||||||
User user = ph.getUsers().get(userKey);
|
User user = ph.getUsers().get(userKey);
|
||||||
if ((user.getGroup() == null || user.getGroup().equals(ph.getDefaultGroup())) && user.getPermissionList().isEmpty() && user.getVariables().isEmpty() && user.isSubGroupsEmpty()) {
|
if ((user.getGroup() == null || user.getGroup().equals(ph.getDefaultGroup())) && user.getPermissionList().isEmpty() && user.getVariables().isEmpty() && user.isSubGroupsEmpty()) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user