mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-26 04:35:56 +01:00
Fixed bug with saving to flat file.
Must remember to include blank constructor so Beans can create the object!
This commit is contained in:
parent
ac9ac426d9
commit
afce568a24
@ -308,7 +308,7 @@ blocks:
|
||||
# If a block is not listed, the default value will be used
|
||||
# Prefix with world name
|
||||
worlds:
|
||||
AcidIsland-world:
|
||||
AcidIsland_world:
|
||||
SAND: 0
|
||||
SANDSTONE: 0
|
||||
ICE: 0
|
||||
|
@ -96,7 +96,7 @@ public class Settings {
|
||||
worldBlockValues.put(bWorld, values);
|
||||
}
|
||||
} else {
|
||||
level.getLogger().severe("No such world : " + world);
|
||||
level.getLogger().severe("Level Addon: No such world : " + world);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -19,6 +19,8 @@ public class LevelsData implements DataObject {
|
||||
// Map - world name, level
|
||||
@Expose
|
||||
private Map<String, Long> levels = new HashMap<>();
|
||||
|
||||
public LevelsData() {} // For Bean loading
|
||||
|
||||
/**
|
||||
* Create a level entry for target player
|
||||
|
@ -22,6 +22,8 @@ public class TopTenData implements DataObject {
|
||||
private String uniqueId = "";
|
||||
@Expose
|
||||
private Map<UUID, Long> topTen = new LinkedHashMap<>();
|
||||
|
||||
public TopTenData() {}
|
||||
|
||||
public Map<UUID, Long> getTopTen() {
|
||||
return topTen.entrySet().stream()
|
||||
|
Loading…
Reference in New Issue
Block a user