From 257fd162423825bcdc7375b790df00a81cedee7c Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Fri, 10 Feb 2012 13:56:16 -0600 Subject: [PATCH] Added plugin-profiling setting to bukkit.yml. --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 2 +- src/main/resources/configurations/bukkit.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 413e1a746a..7589fe26da 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -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")); diff --git a/src/main/resources/configurations/bukkit.yml b/src/main/resources/configurations/bukkit.yml index 55c9407de3..2a93eb9db9 100644 --- a/src/main/resources/configurations/bukkit.yml +++ b/src/main/resources/configurations/bukkit.yml @@ -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