1
0
mirror of https://e.coding.net/circlecloud/LuckLottery.git synced 2025-11-24 21:46:23 +00:00

fix: 修复数据载入错误

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
2016-08-16 09:20:01 +08:00
parent 518a5edb90
commit ddc25570df

View File

@@ -89,9 +89,11 @@ public class PlayerData {
public static void reloadPlayerLottery() { public static void reloadPlayerLottery() {
final Set<String> apl = playerdata.getKeys(false); final Set<String> apl = playerdata.getKeys(false);
for (final String p : apl) { for (final String p : apl) {
if (playerdata.isConfigurationSection(p)) {
loadPlayerLottery(p); loadPlayerLottery(p);
} }
} }
}
public static void reward(final int price) { public static void reward(final int price) {
playerdata.set("PriceTotal", playerdata.getInt("PriceTotal", 0) - price); playerdata.set("PriceTotal", playerdata.getInt("PriceTotal", 0) - price);