Disable timings off as well
This commit is contained in:
parent
a08d1e540d
commit
fe0461396c
@ -1,4 +1,4 @@
|
||||
From 679c0e51be354c5b317bd29bd2f487199519378e Mon Sep 17 00:00:00 2001
|
||||
From 5788df3c533911bb1c4d9764c3d08e37f866f279 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..e2fdf22 100644
|
||||
index 7c28b75..69d629c 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 {
|
||||
@ -47,8 +47,8 @@ index 7c28b75..e2fdf22 100644
|
||||
+ sender.sendMessage( ChatColor.RED + "Please see http://www.spigotmc.org/wiki/disabled-timings-on-command/ for further information." );
|
||||
+ } else if ( "off".equals( args[0] ) )
|
||||
+ {
|
||||
+ ( (org.bukkit.plugin.SimplePluginManager) Bukkit.getPluginManager() ).useTimings( false );
|
||||
+ sender.sendMessage( "Disabled Timings" );
|
||||
+ sender.sendMessage( ChatColor.RED + "This command is disabled as it does not produce accurate results. Please disable plugin-profiling in bukkit.yml and restart." );
|
||||
+ sender.sendMessage( ChatColor.RED + "Please see http://www.spigotmc.org/wiki/disabled-timings-on-command/ for further information." );
|
||||
}
|
||||
+ // Spigot end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user