Add RegionLoader.save
Dieser Commit ist enthalten in:
Ursprung
bdeaa67383
Commit
c77e000752
@ -80,14 +80,20 @@ public class RegionLoader {
|
|||||||
YAPIONObject regionData = new YAPIONObject();
|
YAPIONObject regionData = new YAPIONObject();
|
||||||
if (optionsYapionObject.containsKey(key, YAPIONType.OBJECT)) {
|
if (optionsYapionObject.containsKey(key, YAPIONType.OBJECT)) {
|
||||||
regionData = optionsYapionObject.getObject(key);
|
regionData = optionsYapionObject.getObject(key);
|
||||||
|
} else {
|
||||||
|
optionsYapionObject.add(key, regionData);
|
||||||
}
|
}
|
||||||
|
|
||||||
Prototype.generateRegion(regionConfig, regionData);
|
Prototype.generateRegion(regionConfig, regionData);
|
||||||
});
|
});
|
||||||
|
|
||||||
YAPIONObject globalOptions = optionsYapionObject.getObject("global");
|
YAPIONObject globalOptions = optionsYapionObject.getObject("global");
|
||||||
|
if (globalOptions == null) {
|
||||||
|
globalOptions = new YAPIONObject();
|
||||||
|
optionsYapionObject.add("global", globalOptions);
|
||||||
|
}
|
||||||
FlagStorage flagStorage;
|
FlagStorage flagStorage;
|
||||||
if (globalOptions != null && globalOptions.containsKey("flagStorage", YAPIONType.OBJECT)) {
|
if (globalOptions.containsKey("flagStorage", YAPIONType.OBJECT)) {
|
||||||
flagStorage = (FlagStorage) YAPIONDeserializer.deserialize(globalOptions.getObject("flagStorage"));
|
flagStorage = (FlagStorage) YAPIONDeserializer.deserialize(globalOptions.getObject("flagStorage"));
|
||||||
} else {
|
} else {
|
||||||
flagStorage = new FlagStorage();
|
flagStorage = new FlagStorage();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren