mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 11:38:29 +01:00
Added plugin-profiling setting to bukkit.yml.
This commit is contained in:
parent
92dfb2500b
commit
257fd16242
@ -155,7 +155,7 @@ public final class CraftServer implements Server {
|
|||||||
configuration.options().copyDefaults(true);
|
configuration.options().copyDefaults(true);
|
||||||
configuration.setDefaults(YamlConfiguration.loadConfiguration(getClass().getClassLoader().getResourceAsStream("configurations/bukkit.yml")));
|
configuration.setDefaults(YamlConfiguration.loadConfiguration(getClass().getClassLoader().getResourceAsStream("configurations/bukkit.yml")));
|
||||||
saveConfig();
|
saveConfig();
|
||||||
((SimplePluginManager) pluginManager).useTimings(configuration.getBoolean("settings.plugin-profiling", false));
|
((SimplePluginManager) pluginManager).useTimings(configuration.getBoolean("settings.plugin-profiling"));
|
||||||
|
|
||||||
updater = new AutoUpdater(new BukkitDLUpdaterService(configuration.getString("auto-updater.host")), getLogger(), configuration.getString("auto-updater.preferred-channel"));
|
updater = new AutoUpdater(new BukkitDLUpdaterService(configuration.getString("auto-updater.host")), getLogger(), configuration.getString("auto-updater.preferred-channel"));
|
||||||
updater.setEnabled(configuration.getBoolean("auto-updater.enabled"));
|
updater.setEnabled(configuration.getBoolean("auto-updater.enabled"));
|
||||||
|
@ -21,6 +21,7 @@ settings:
|
|||||||
update-folder: update
|
update-folder: update
|
||||||
ping-packet-limit: 100
|
ping-packet-limit: 100
|
||||||
use-exact-login-location: false
|
use-exact-login-location: false
|
||||||
|
plugin-profiling: false
|
||||||
ticks-per:
|
ticks-per:
|
||||||
animal-spawns: 400
|
animal-spawns: 400
|
||||||
monster-spawns: 1
|
monster-spawns: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user