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