mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
allWorldsDataList now returns fully mirrored worlds whihc are not
identical mirrors (fixes the /manselect list).
This commit is contained in:
parent
920e1a3b1f
commit
778f5649c8
2 changed files with 4 additions and 3 deletions
|
@ -200,4 +200,5 @@ v 2.0:
|
||||||
- Fix Synchronization on adding subgroups (thanks snowleo).
|
- Fix Synchronization on adding subgroups (thanks snowleo).
|
||||||
- Remove info node support from GlobalGroups. It should not have them as GlobalGroups are only permission collections.
|
- Remove info node support from GlobalGroups. It should not have them as GlobalGroups are only permission collections.
|
||||||
- Change order of data in Users.yml to [name, Group, SubGroup, Permissions, Info nodes].
|
- Change order of data in Users.yml to [name, Group, SubGroup, Permissions, Info nodes].
|
||||||
- Add alphabetically sorted user lists.
|
- Add alphabetically sorted user lists.
|
||||||
|
- allWorldsDataList now returns fully mirrored worlds which are not identical mirrors (fixes the /manselect list).
|
|
@ -692,7 +692,7 @@ public class WorldsHolder {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns all physically loaded worlds which have at least
|
* Returns all physically loaded worlds which have at least
|
||||||
* one of their own data sets for users or groups.
|
* one of their own data sets for users or groups which isn't an identical mirror.
|
||||||
*
|
*
|
||||||
* @return ArrayList<OverloadedWorldHolder> of all loaded worlds
|
* @return ArrayList<OverloadedWorldHolder> of all loaded worlds
|
||||||
*/
|
*/
|
||||||
|
@ -700,7 +700,7 @@ public class WorldsHolder {
|
||||||
|
|
||||||
ArrayList<OverloadedWorldHolder> list = new ArrayList<OverloadedWorldHolder>();
|
ArrayList<OverloadedWorldHolder> list = new ArrayList<OverloadedWorldHolder>();
|
||||||
for (OverloadedWorldHolder data : worldsData.values()) {
|
for (OverloadedWorldHolder data : worldsData.values()) {
|
||||||
if ((!list.contains(data)) && (!mirrorsGroup.containsKey(data.getName().toLowerCase()) || !mirrorsUser.containsKey(data.getName().toLowerCase()))) {
|
if ((!list.contains(data))) { // && (!mirrorsGroup.containsKey(data.getName().toLowerCase()) || !mirrorsUser.containsKey(data.getName().toLowerCase()))) {
|
||||||
|
|
||||||
String worldNameLowered = data.getName().toLowerCase();
|
String worldNameLowered = data.getName().toLowerCase();
|
||||||
String usersMirror = mirrorsUser.get(worldNameLowered);
|
String usersMirror = mirrorsUser.get(worldNameLowered);
|
||||||
|
|
Loading…
Reference in a new issue