3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-10-03 08:21:06 +02:00

Fix reloading on Spigot

Fixes #3319
Dieser Commit ist enthalten in:
Camotoy 2022-10-03 13:15:30 -04:00
Ursprung 47d14e12eb
Commit 7f05ab9d22
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -196,6 +196,7 @@ public class GeyserSpigotPlugin extends JavaPlugin implements GeyserBootstrap {
geyserConfig.loadFloodgate(this); geyserConfig.loadFloodgate(this);
if (!INITIALIZED) {
// Needs to be an anonymous inner class otherwise Bukkit complains about missing classes // Needs to be an anonymous inner class otherwise Bukkit complains about missing classes
Bukkit.getPluginManager().registerEvents(new Listener() { Bukkit.getPluginManager().registerEvents(new Listener() {
@ -229,6 +230,12 @@ public class GeyserSpigotPlugin extends JavaPlugin implements GeyserBootstrap {
} }
} }
if (INITIALIZED) {
// Reload; continue with post startup
postStartup();
}
}
private void postStartup() { private void postStartup() {
GeyserImpl.start(); GeyserImpl.start();