Fix RegionLoader
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
470fe79e3b
Commit
6668f829af
@ -91,7 +91,7 @@ public class BauSystem extends JavaPlugin implements Listener {
|
||||
private StringBuilder current = new StringBuilder();
|
||||
|
||||
@Override
|
||||
public void write(int b) {
|
||||
public void write(int b) throws IOException {
|
||||
if (b == '\n') {
|
||||
String logging = current.toString();
|
||||
if (logging.contains("SLF4J")) {
|
||||
|
@ -66,11 +66,13 @@ public class RegionLoader {
|
||||
|
||||
File optionsFile = new File(Bukkit.getWorlds().get(0).getWorldFolder(), "options.yapion");
|
||||
optionsYapionObject = new YAPIONObject();
|
||||
if (optionsFile.length() != 0) {
|
||||
try (BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(optionsFile))) {
|
||||
optionsYapionObject = YAPIONParser.parse(bufferedInputStream);
|
||||
} catch (IOException e) {
|
||||
// Ignored
|
||||
}
|
||||
}
|
||||
|
||||
yapionObject.forEach((key, yapionAnyType) -> {
|
||||
if (key.equals("global")) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren