Add isProxyEnabled method to ServerConfiguration (#12664)
This commit is contained in:
@ -1,9 +1,16 @@
|
||||
package io.papermc.paper.configuration;
|
||||
|
||||
import org.spigotmc.SpigotConfig;
|
||||
|
||||
public class PaperServerConfiguration implements ServerConfiguration {
|
||||
|
||||
@Override
|
||||
public boolean isProxyOnlineMode() {
|
||||
return GlobalConfiguration.get().proxies.isProxyOnlineMode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isProxyEnabled() {
|
||||
return GlobalConfiguration.get().proxies.velocity.enabled || SpigotConfig.bungee;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user