mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Update languages module, rename method
This commit is contained in:
parent
e9d59208dc
commit
a407ce792b
2 changed files with 4 additions and 4 deletions
|
@ -148,13 +148,13 @@ public class GeyserSpigotPlugin extends JavaPlugin implements GeyserBootstrap {
|
|||
try {
|
||||
// Check spigot config for BungeeCord mode
|
||||
if (Bukkit.getServer().spigot().getConfig().getBoolean("settings.bungeecord")) {
|
||||
disableOnBackendServers("BungeeCord");
|
||||
warnInvalidProxySetups("BungeeCord");
|
||||
return;
|
||||
}
|
||||
|
||||
// Now: Check for velocity mode - deliberately after checking bungeecord because this is a paper config
|
||||
if (Bukkit.getServer().spigot().getPaperConfig().getBoolean("proxies.velocity.enabled")) {
|
||||
disableOnBackendServers("Velocity");
|
||||
warnInvalidProxySetups("Velocity");
|
||||
return;
|
||||
}
|
||||
} catch (NoSuchMethodError e) {
|
||||
|
@ -477,7 +477,7 @@ public class GeyserSpigotPlugin extends JavaPlugin implements GeyserBootstrap {
|
|||
return true;
|
||||
}
|
||||
|
||||
private void disableOnBackendServers(String platform) {
|
||||
private void warnInvalidProxySetups(String platform) {
|
||||
geyserLogger.error("*********************************************");
|
||||
geyserLogger.error("");
|
||||
geyserLogger.error(GeyserLocale.getLocaleStringLog("geyser.bootstrap.unsupported_proxy_backend", platform));
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 60b20023a92f084aba895ab0336e70fa7fb311fb
|
||||
Subproject commit 7499daf712ad6de70a07fba471b51b4ad92315c5
|
Loading…
Add table
Add a link
Reference in a new issue