Added plugin-profiling setting to bukkit.yml.

This commit is contained in:
Travis Watkins 2012-02-10 13:56:16 -06:00 committed by EvilSeph
parent 92dfb2500b
commit 257fd16242
2 changed files with 2 additions and 1 deletions

View File

@ -155,7 +155,7 @@ public final class CraftServer implements Server {
configuration.options().copyDefaults(true);
configuration.setDefaults(YamlConfiguration.loadConfiguration(getClass().getClassLoader().getResourceAsStream("configurations/bukkit.yml")));
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.setEnabled(configuration.getBoolean("auto-updater.enabled"));

View File

@ -21,6 +21,7 @@ settings:
update-folder: update
ping-packet-limit: 100
use-exact-login-location: false
plugin-profiling: false
ticks-per:
animal-spawns: 400
monster-spawns: 1