From ddc25570df83e0e28016350d3e88e0bea8614fe1 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Tue, 16 Aug 2016 09:20:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=BD=BD=E5=85=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/cn/citycraft/LuckLottery/config/PlayerData.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/cn/citycraft/LuckLottery/config/PlayerData.java b/src/main/java/cn/citycraft/LuckLottery/config/PlayerData.java index b94a0de..a74231d 100644 --- a/src/main/java/cn/citycraft/LuckLottery/config/PlayerData.java +++ b/src/main/java/cn/citycraft/LuckLottery/config/PlayerData.java @@ -89,7 +89,9 @@ public class PlayerData { public static void reloadPlayerLottery() { final Set apl = playerdata.getKeys(false); for (final String p : apl) { - loadPlayerLottery(p); + if (playerdata.isConfigurationSection(p)) { + loadPlayerLottery(p); + } } }