mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-12 14:50:03 +01:00
Add a custom shutdown message set in bukkit.yml. Addresses BUKKIT-3031
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
parent
8c0f05c6ef
commit
d54778d339
@ -930,6 +930,10 @@ public final class CraftServer implements Server {
|
|||||||
return configuration.getInt("settings.spawn-radius", -1);
|
return configuration.getInt("settings.spawn-radius", -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getShutdownMessage() {
|
||||||
|
return configuration.getString("settings.shutdown-message");
|
||||||
|
}
|
||||||
|
|
||||||
public int getSpawnRadius() {
|
public int getSpawnRadius() {
|
||||||
return ((DedicatedServer) console).propertyManager.getInt("spawn-protection", 16);
|
return ((DedicatedServer) console).propertyManager.getInt("spawn-protection", 16);
|
||||||
}
|
}
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# As you can see, there's actually not that much to configure without any plugins.
|
# As you can see, there's actually not that much to configure without any plugins.
|
||||||
# For a reference for any variable inside this file, check out the bukkit wiki at
|
# For a reference for any variable inside this file, check out the bukkit wiki at
|
||||||
# http://wiki.bukkit.org/Bukkit.yml
|
# http://wiki.bukkit.org/Bukkit.yml
|
||||||
#
|
#
|
||||||
# If you need help on this file, feel free to join us on irc or leave a message
|
# If you need help on this file, feel free to join us on irc or leave a message
|
||||||
# on the forums asking for advice.
|
# on the forums asking for advice.
|
||||||
#
|
#
|
||||||
# IRC: #bukkit @ esper.net
|
# IRC: #bukkit @ esper.net
|
||||||
# (If this means nothing to you, just go to http://webchat.esper.net/?channels=bukkit )
|
# (If this means nothing to you, just go to http://webchat.esper.net/?channels=bukkit )
|
||||||
# Forums: http://forums.bukkit.org/forums/bukkit-help.6/
|
# Forums: http://forums.bukkit.org/forums/bukkit-help.6/
|
||||||
@ -24,6 +24,7 @@ settings:
|
|||||||
connection-throttle: 4000
|
connection-throttle: 4000
|
||||||
query-plugins: true
|
query-plugins: true
|
||||||
deprecated-verbose: default
|
deprecated-verbose: default
|
||||||
|
shutdown-message: Server closed
|
||||||
spawn-limits:
|
spawn-limits:
|
||||||
monsters: 70
|
monsters: 70
|
||||||
animals: 15
|
animals: 15
|
||||||
|
Loading…
Reference in New Issue
Block a user