summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTahg <tahgtahv@gmail.com>2012-01-19 13:01:41 -0500
committerTahg <tahgtahv@gmail.com>2012-01-19 18:50:39 -0500
commit4b0f819af21dc5196f704b595e1ae3dd47ad2372 (patch)
tree25bd142aef3b600100616cbbf0495f9acde3af1f /src
parent1aa0847803138495ee6b6ab6e34074fc1ba0598a (diff)
downloadcraftbukkit-4b0f819af21dc5196f704b595e1ae3dd47ad2372.tar
craftbukkit-4b0f819af21dc5196f704b595e1ae3dd47ad2372.tar.gz
craftbukkit-4b0f819af21dc5196f704b595e1ae3dd47ad2372.tar.lz
craftbukkit-4b0f819af21dc5196f704b595e1ae3dd47ad2372.tar.xz
craftbukkit-4b0f819af21dc5196f704b595e1ae3dd47ad2372.zip
Updated timing code for new event system
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index f3ed843b..e4d8fb4a 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -127,6 +127,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));
loadPlugins();
enablePlugins(PluginLoadOrder.STARTUP);