Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
b01d763ac1
Commit
dd0d929c12
@ -27,7 +27,9 @@ import org.bukkit.entity.Player;
|
|||||||
import yapion.hierarchy.output.FileOutput;
|
import yapion.hierarchy.output.FileOutput;
|
||||||
import yapion.hierarchy.types.YAPIONArray;
|
import yapion.hierarchy.types.YAPIONArray;
|
||||||
import yapion.hierarchy.types.YAPIONObject;
|
import yapion.hierarchy.types.YAPIONObject;
|
||||||
|
import yapion.parser.InputStreamCharsets;
|
||||||
import yapion.parser.YAPIONParser;
|
import yapion.parser.YAPIONParser;
|
||||||
|
import yapion.parser.options.FileOptions;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -47,7 +49,7 @@ public class SimulatorData {
|
|||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
return new YAPIONObject();
|
return new YAPIONObject();
|
||||||
}
|
}
|
||||||
return YAPIONParser.parse(file);
|
return YAPIONParser.parse(file, new FileOptions().charset(InputStreamCharsets.UTF_8));
|
||||||
}
|
}
|
||||||
|
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren