mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 05:32:18 -07:00
Remove timings impl
This commit is contained in:
@@ -2345,10 +2345,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
}
|
||||
}
|
||||
|
||||
+ @Deprecated // Paper
|
||||
public void handleCommand(String s) { // Paper - private -> public
|
||||
- private void handleCommand(String s) {
|
||||
- org.spigotmc.AsyncCatcher.catchOp("Command Dispatched Async: " + s); // Paper - Add async catcher
|
||||
- co.aikar.timings.MinecraftTimings.playerCommandTimer.startTiming(); // Paper
|
||||
- if ( org.spigotmc.SpigotConfig.logCommands ) // Spigot
|
||||
- this.LOGGER.info(this.player.getScoreboardName() + " issued server command: " + s);
|
||||
-
|
||||
@@ -2358,7 +2356,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
- this.cserver.getPluginManager().callEvent(event);
|
||||
-
|
||||
- if (event.isCancelled()) {
|
||||
- co.aikar.timings.MinecraftTimings.playerCommandTimer.stopTiming(); // Paper
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
@@ -2371,7 +2368,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
- java.util.logging.Logger.getLogger(ServerGamePacketListenerImpl.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
|
||||
- return;
|
||||
- } finally {
|
||||
- co.aikar.timings.MinecraftTimings.playerCommandTimer.stopTiming(); // Paper
|
||||
+ @Deprecated // Paper
|
||||
+ public void handleCommand(String s) { // Paper - private -> public
|
||||
+ // Paper start - Remove all this old duplicated logic
|
||||
+ if (s.startsWith("/")) {
|
||||
+ s = s.substring(1);
|
||||
|
Reference in New Issue
Block a user