Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 05:20:07 +01:00
Add query-plugins setting. Addresses BUKKIT-1781
Dieser Commit ist enthalten in:
Ursprung
6bbae461d5
Commit
0095add08c
@ -728,7 +728,7 @@ public class MinecraftServer implements Runnable, ICommandListener, IMinecraftSe
|
|||||||
result.append(" on Bukkit ");
|
result.append(" on Bukkit ");
|
||||||
result.append(server.getBukkitVersion());
|
result.append(server.getBukkitVersion());
|
||||||
|
|
||||||
if (plugins.length > 0) {
|
if (plugins.length > 0 && this.server.getQueryPlugins()) {
|
||||||
result.append(": ");
|
result.append(": ");
|
||||||
|
|
||||||
for (int i = 0; i < plugins.length; i++) {
|
for (int i = 0; i < plugins.length; i++) {
|
||||||
|
@ -400,6 +400,10 @@ public final class CraftServer implements Server {
|
|||||||
return this.configuration.getBoolean("settings.warn-on-overload");
|
return this.configuration.getBoolean("settings.warn-on-overload");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean getQueryPlugins() {
|
||||||
|
return this.configuration.getBoolean("settings.query-plugins");
|
||||||
|
}
|
||||||
|
|
||||||
public boolean hasWhitelist() {
|
public boolean hasWhitelist() {
|
||||||
return this.getConfigBoolean("white-list", false);
|
return this.getConfigBoolean("white-list", false);
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,7 @@ settings:
|
|||||||
use-exact-login-location: false
|
use-exact-login-location: false
|
||||||
plugin-profiling: false
|
plugin-profiling: false
|
||||||
connection-throttle: 4000
|
connection-throttle: 4000
|
||||||
|
query-plugins: true
|
||||||
spawn-limits:
|
spawn-limits:
|
||||||
monsters: 70
|
monsters: 70
|
||||||
animals: 15
|
animals: 15
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren