Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-25 15:50:10 +01:00
Fix checkforupdates changing from false to true
FIXED: When starting the server when checkforupdates is false, it won't register the listener. So when you enable checkforupdates using /viaversion dontbugme it won't send you messages until a restart.
Dieser Commit ist enthalten in:
Ursprung
1c42ae1ee8
Commit
91de7e5a22
@ -55,10 +55,8 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaVersionAPI {
|
|||||||
getLogger().severe("Unable to inject handlers, are you on 1.8? ");
|
getLogger().severe("Unable to inject handlers, are you on 1.8? ");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
if (getConfig().getBoolean("checkforupdates")) {
|
if (getConfig().getBoolean("checkforupdates"))
|
||||||
Bukkit.getPluginManager().registerEvents(new UpdateListener(this), this);
|
|
||||||
UpdateUtil.sendUpdateMessage(this);
|
UpdateUtil.sendUpdateMessage(this);
|
||||||
}
|
|
||||||
|
|
||||||
Bukkit.getPluginManager().registerEvents(new Listener() {
|
Bukkit.getPluginManager().registerEvents(new Listener() {
|
||||||
@EventHandler
|
@EventHandler
|
||||||
@ -69,6 +67,7 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaVersionAPI {
|
|||||||
|
|
||||||
Bukkit.getPluginManager().registerEvents(new ArmorListener(this), this);
|
Bukkit.getPluginManager().registerEvents(new ArmorListener(this), this);
|
||||||
Bukkit.getPluginManager().registerEvents(new CommandBlockListener(this), this);
|
Bukkit.getPluginManager().registerEvents(new CommandBlockListener(this), this);
|
||||||
|
Bukkit.getPluginManager().registerEvents(new UpdateListener(this), this);
|
||||||
|
|
||||||
getCommand("viaversion").setExecutor(new ViaVersionCommand(this));
|
getCommand("viaversion").setExecutor(new ViaVersionCommand(this));
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren