fix wrong json value being read...

This commit is contained in:
Flemmli97 2021-05-03 20:18:03 +02:00
parent 00eb9ad753
commit 96130119af
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
Flan 1.3.1
======================
- Fix the nullpointer when creating claims
- Fix personal groups not reading from file
Flan 1.3.0
======================

View File

@ -289,7 +289,7 @@ public class PlayerClaimData {
Flan.debug("Read following json data {} from file {}", obj, file.getName());
this.claimBlocks = obj.get("ClaimBlocks").getAsInt();
this.additionalClaimBlocks = obj.get("AdditionalBlocks").getAsInt();
JsonObject defP = ConfigHandler.fromJson(obj, "defaultGroups");
JsonObject defP = ConfigHandler.fromJson(obj, "DefaultGroups");
defP.entrySet().forEach(e -> {
Map<ClaimPermission, Boolean> perms = new HashMap<>();
perms.forEach((p, b) -> this.editDefaultPerms(e.getKey(), p, b ? 1 : 0));