From 4b0f819af21dc5196f704b595e1ae3dd47ad2372 Mon Sep 17 00:00:00 2001 From: Tahg Date: Thu, 19 Jan 2012 13:01:41 -0500 Subject: [PATCH] Updated timing code for new event system --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index f3ed843b22..e4d8fb4a98 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);