mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 02:35:49 +01:00
Add query-plugins setting. Addresses BUKKIT-1781
This commit is contained in:
parent
6bbae461d5
commit
0095add08c
3 changed files with 6 additions and 1 deletions
|
@ -728,7 +728,7 @@ public class MinecraftServer implements Runnable, ICommandListener, IMinecraftSe
|
|||
result.append(" on Bukkit ");
|
||||
result.append(server.getBukkitVersion());
|
||||
|
||||
if (plugins.length > 0) {
|
||||
if (plugins.length > 0 && this.server.getQueryPlugins()) {
|
||||
result.append(": ");
|
||||
|
||||
for (int i = 0; i < plugins.length; i++) {
|
||||
|
|
|
@ -399,6 +399,10 @@ public final class CraftServer implements Server {
|
|||
public boolean getWarnOnOverload() {
|
||||
return this.configuration.getBoolean("settings.warn-on-overload");
|
||||
}
|
||||
|
||||
public boolean getQueryPlugins() {
|
||||
return this.configuration.getBoolean("settings.query-plugins");
|
||||
}
|
||||
|
||||
public boolean hasWhitelist() {
|
||||
return this.getConfigBoolean("white-list", false);
|
||||
|
|
|
@ -23,6 +23,7 @@ settings:
|
|||
use-exact-login-location: false
|
||||
plugin-profiling: false
|
||||
connection-throttle: 4000
|
||||
query-plugins: true
|
||||
spawn-limits:
|
||||
monsters: 70
|
||||
animals: 15
|
||||
|
|
Loading…
Reference in a new issue