Updated timing code for new event system

By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2012-01-19 13:01:41 -05:00
parent 57da325786
commit 2c16b85e3c

View file

@ -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);