forked from xjboss/KCauldronX
19 lines
857 B
Diff
19 lines
857 B
Diff
--- ../src-base/minecraft/org/bukkit/command/SimpleCommandMap.java
|
|
+++ ../src-work/minecraft/org/bukkit/command/SimpleCommandMap.java
|
|
@@ -176,11 +176,15 @@
|
|
}
|
|
|
|
try {
|
|
+ target.timings.startTiming(); // Spigot
|
|
// Note: we don't return the result of target.execute as thats success / failure, we return handled (true) or not handled (false)
|
|
target.execute(sender, sentCommandLabel, Arrays_copyOfRange(args, 1, args.length));
|
|
+ target.timings.stopTiming(); // Spigot
|
|
} catch (CommandException ex) {
|
|
+ target.timings.stopTiming(); // Spigot
|
|
throw ex;
|
|
} catch (Throwable ex) {
|
|
+ target.timings.stopTiming(); // Spigot
|
|
throw new CommandException("Unhandled exception executing '" + commandLine + "' in " + target, ex);
|
|
}
|
|
|