From 96130119afcbfb54fc89c516a4dfca8c837fb726 Mon Sep 17 00:00:00 2001 From: Flemmli97 Date: Mon, 3 May 2021 20:18:03 +0200 Subject: [PATCH] fix wrong json value being read... --- Changelog.txt | 1 + src/main/java/com/flemmli97/flan/player/PlayerClaimData.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index a0dfe0f..6ef5b4b 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -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 ====================== diff --git a/src/main/java/com/flemmli97/flan/player/PlayerClaimData.java b/src/main/java/com/flemmli97/flan/player/PlayerClaimData.java index eefba91..9fc60b3 100644 --- a/src/main/java/com/flemmli97/flan/player/PlayerClaimData.java +++ b/src/main/java/com/flemmli97/flan/player/PlayerClaimData.java @@ -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 perms = new HashMap<>(); perms.forEach((p, b) -> this.editDefaultPerms(e.getKey(), p, b ? 1 : 0));