Disable /timings on as it produces inaccurate results.
This commit is contained in:
parent
49f9f20d1c
commit
9a280ecec9
1 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
From a5a929cfee543a7e70b46c81e2ff3a18447012c1 Mon Sep 17 00:00:00 2001
|
||||
From f229e7b81ab44f89a86865d9c8200c20cb1f2aab Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <md_5@live.com.au>
|
||||
Date: Sun, 2 Jun 2013 11:17:05 +1000
|
||||
Subject: [PATCH] Enchanced Timings
|
||||
|
@ -17,7 +17,7 @@ index fb3c90f..ffbcac1 100644
|
|||
Command.broadcastCommandMessage(sender, ChatColor.GREEN + "Reload complete.");
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/command/defaults/TimingsCommand.java b/src/main/java/org/bukkit/command/defaults/TimingsCommand.java
|
||||
index 7c28b75..ec1320f 100644
|
||||
index 7c28b75..1bc26c6 100644
|
||||
--- a/src/main/java/org/bukkit/command/defaults/TimingsCommand.java
|
||||
+++ b/src/main/java/org/bukkit/command/defaults/TimingsCommand.java
|
||||
@@ -35,7 +35,7 @@ public class TimingsCommand extends BukkitCommand {
|
||||
|
@ -42,8 +42,8 @@ index 7c28b75..ec1320f 100644
|
|||
+ // Spigot start - dynamic enable
|
||||
+ if ( "on".equals( args[0] ) )
|
||||
+ {
|
||||
+ ( (org.bukkit.plugin.SimplePluginManager) Bukkit.getPluginManager() ).useTimings( true );
|
||||
+ sender.sendMessage( "Enabled Timings" );
|
||||
+ // ( (org.bukkit.plugin.SimplePluginManager) Bukkit.getPluginManager() ).useTimings( true );
|
||||
+ sender.sendMessage( ChatColor.RED + "This command disabled as it does not produce accurate results. Please enable plugin-profiling in bukkit.yml and restart." );
|
||||
+ } else if ( "off".equals( args[0] ) )
|
||||
+ {
|
||||
+ ( (org.bukkit.plugin.SimplePluginManager) Bukkit.getPluginManager() ).useTimings( false );
|
||||
|
|
Loading…
Reference in a new issue