mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-23 07:41:32 +01:00
Fix GlobalGroups not loading permission nodes.
This commit is contained in:
parent
a7a06963ac
commit
3c5f9e1616
@ -191,4 +191,5 @@ v 2.0:
|
|||||||
- Stop force removing attachments and let Bukkit handle it's own mess.
|
- Stop force removing attachments and let Bukkit handle it's own mess.
|
||||||
- Change to our own Yaml parsing for globalgroups instead of using the YAMLConfiguration class in bukkit.
|
- Change to our own Yaml parsing for globalgroups instead of using the YAMLConfiguration class in bukkit.
|
||||||
- Fix a cases sensitivity bug in world loading.
|
- Fix a cases sensitivity bug in world loading.
|
||||||
- Stop using the YamlConfiguration in bukkit for our config handling. We can now support periods in world names.
|
- Stop using the YamlConfiguration in bukkit for our config handling. We can now support periods in world names.
|
||||||
|
- Fix GlobalGroups not loading permission nodes.
|
@ -161,7 +161,7 @@ public class GlobalGroups {
|
|||||||
Object element;
|
Object element;
|
||||||
|
|
||||||
// Permission nodes
|
// Permission nodes
|
||||||
element = GGroups.get("groups." + groupName + ".permissions");
|
element = ((Map<String, Object>)allGroups.get(groupName)).get("permissions");
|
||||||
|
|
||||||
if (element != null)
|
if (element != null)
|
||||||
if (element instanceof List) {
|
if (element instanceof List) {
|
||||||
@ -180,7 +180,7 @@ public class GlobalGroups {
|
|||||||
throw new IllegalArgumentException("Unknown type of permission node for global group: " + groupName);
|
throw new IllegalArgumentException("Unknown type of permission node for global group: " + groupName);
|
||||||
|
|
||||||
// Info nodes
|
// Info nodes
|
||||||
element = GGroups.get("groups." + groupName + ".info");
|
element = ((Map<String, Object>)allGroups.get(groupName)).get("info");
|
||||||
|
|
||||||
if (element != null)
|
if (element != null)
|
||||||
if (element instanceof MemorySection) {
|
if (element instanceof MemorySection) {
|
||||||
|
Loading…
Reference in New Issue
Block a user