mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-18 02:51:18 +02:00
Fixed reading world mirrors from the config.
This commit is contained in:
parent
03adb56d25
commit
121966436e
@ -46,3 +46,4 @@ v 1.4:
|
|||||||
- Removed extra notification messages for the player issuing the group move command.
|
- Removed extra notification messages for the player issuing the group move command.
|
||||||
- Added a config setting - bukkit_perms_override: false
|
- Added a config setting - bukkit_perms_override: false
|
||||||
Enable to allow default Bukkit based permissions to remain enabled, unless directly negated within GroupManager.
|
Enable to allow default Bukkit based permissions to remain enabled, unless directly negated within GroupManager.
|
||||||
|
- Fixed reading world mirrors from the config.
|
@ -58,9 +58,9 @@ public class GMConfiguration {
|
|||||||
return GMconfig.getBoolean("settings.config.opOverrides", true);
|
return GMconfig.getBoolean("settings.config.opOverrides", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public Map<String, Object> getMirrorsMap() {
|
public Map<String, Object> getMirrorsMap() {
|
||||||
return (Map<String, Object>) GMconfig.getList("settings.permission.world.mirror");
|
|
||||||
|
return (Map<String, Object>) GMconfig.getConfigurationSection("settings.permission.world.mirror").getValues(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getSaveInterval() {
|
public Integer getSaveInterval() {
|
||||||
|
@ -99,11 +99,11 @@ public class WorldsHolder {
|
|||||||
* don't load any worlds which are already loaded
|
* don't load any worlds which are already loaded
|
||||||
* or mirrored worlds that don't need data.
|
* or mirrored worlds that don't need data.
|
||||||
*/
|
*/
|
||||||
if (worldsData.containsKey(folder.getName().toLowerCase())
|
if (!worldsData.containsKey(folder.getName().toLowerCase())
|
||||||
|| mirrors.containsKey(folder.getName().toLowerCase())) {
|
|| !mirrors.containsKey(folder.getName().toLowerCase())) {
|
||||||
continue;
|
loadWorld(folder.getName());
|
||||||
}
|
}
|
||||||
loadWorld(folder.getName());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user