mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
Implement getMotd, and reload the motd. Adds BUKKIT-1799
This commit is contained in:
parent
00efc8c464
commit
d7272f42ef
@ -399,10 +399,10 @@ public final class CraftServer implements Server {
|
|||||||
public boolean getWarnOnOverload() {
|
public boolean getWarnOnOverload() {
|
||||||
return this.configuration.getBoolean("settings.warn-on-overload");
|
return this.configuration.getBoolean("settings.warn-on-overload");
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getQueryPlugins() {
|
public boolean getQueryPlugins() {
|
||||||
return this.configuration.getBoolean("settings.query-plugins");
|
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);
|
||||||
@ -504,6 +504,7 @@ public final class CraftServer implements Server {
|
|||||||
console.spawnAnimals = config.getBoolean("spawn-animals", console.spawnAnimals);
|
console.spawnAnimals = config.getBoolean("spawn-animals", console.spawnAnimals);
|
||||||
console.pvpMode = config.getBoolean("pvp", console.pvpMode);
|
console.pvpMode = config.getBoolean("pvp", console.pvpMode);
|
||||||
console.allowFlight = config.getBoolean("allow-flight", console.allowFlight);
|
console.allowFlight = config.getBoolean("allow-flight", console.allowFlight);
|
||||||
|
console.motd = config.getString("motd", console.motd);
|
||||||
monsterSpawn = configuration.getInt("spawn-limits.monsters");
|
monsterSpawn = configuration.getInt("spawn-limits.monsters");
|
||||||
animalSpawn = configuration.getInt("spawn-limits.animals");
|
animalSpawn = configuration.getInt("spawn-limits.animals");
|
||||||
waterAnimalSpawn = configuration.getInt("spawn-limits.water-animals");
|
waterAnimalSpawn = configuration.getInt("spawn-limits.water-animals");
|
||||||
@ -1194,4 +1195,8 @@ public final class CraftServer implements Server {
|
|||||||
public boolean isPrimaryThread() {
|
public boolean isPrimaryThread() {
|
||||||
return Thread.currentThread().equals(console.primaryThread);
|
return Thread.currentThread().equals(console.primaryThread);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getMotd() {
|
||||||
|
return console.motd;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user