Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 00:00:41 +01:00
May or may not work
@LegacyGamerHD
Dieser Commit ist enthalten in:
Ursprung
433a3b4713
Commit
90419fc692
@ -56,12 +56,12 @@ public class GeyserBungeePlugin extends Plugin implements IGeyserBootstrap {
|
|||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
try (InputStream in = getResourceAsStream("config.yml")) {
|
try (InputStream in = getResourceAsStream("config.yml")) {
|
||||||
Files.copy(in, file.toPath());
|
Files.copy(in, file.toPath());
|
||||||
configuration = ConfigurationProvider.getProvider(YamlConfiguration.class).load(new File(getDataFolder(), "config.yml"));
|
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
getLogger().log(Level.SEVERE, "Failed to read/create config.yml! Make sure it's up to date and/or readable+writable!", ex);
|
getLogger().log(Level.SEVERE, "Failed to read/create config.yml! Make sure it's up to date and/or readable+writable!", ex);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
configuration = ConfigurationProvider.getProvider(YamlConfiguration.class).load(new File(getDataFolder(), "config.yml"));
|
||||||
|
|
||||||
if (configuration == null) {
|
if (configuration == null) {
|
||||||
getLogger().severe("Failed to read/create config.yml! Make sure it's up to date and/or readable+writable!");
|
getLogger().severe("Failed to read/create config.yml! Make sure it's up to date and/or readable+writable!");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren