-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable timings warn msg and commands
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
patches/api/0006-Disable-timings-warn-msg-and-commands.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: MrHua269 <wangxyper@163.com> | ||
Date: Fri, 29 Nov 2024 23:32:23 +0800 | ||
Subject: [PATCH] Disable timings warn msg and commands | ||
|
||
|
||
diff --git a/src/main/java/co/aikar/timings/Timings.java b/src/main/java/co/aikar/timings/Timings.java | ||
index 7760c779e97a0e95d5c3d255b25d949ac20df235..e1b5dcf0d54d3eaa489949f12874ade0e32cdf2f 100644 | ||
--- a/src/main/java/co/aikar/timings/Timings.java | ||
+++ b/src/main/java/co/aikar/timings/Timings.java | ||
@@ -147,7 +147,7 @@ public final class Timings { | ||
public static void setTimingsEnabled(boolean enabled) { | ||
enabled = false; // Folia - region threading - disable timings | ||
timingsEnabled = enabled; | ||
- warnAboutDeprecationOnEnable(); | ||
+ // warnAboutDeprecationOnEnable(); // Luminol - Disable timings warn msg and commands | ||
reset(); | ||
} | ||
|
||
diff --git a/src/main/java/org/bukkit/command/SimpleCommandMap.java b/src/main/java/org/bukkit/command/SimpleCommandMap.java | ||
index 5df19bd701c67506689fc7f49d91f99ebfbc83f0..baf0cbd2f995ebe2e4382244eff6e15ec125d790 100644 | ||
--- a/src/main/java/org/bukkit/command/SimpleCommandMap.java | ||
+++ b/src/main/java/org/bukkit/command/SimpleCommandMap.java | ||
@@ -39,7 +39,7 @@ public class SimpleCommandMap implements CommandMap { | ||
register("bukkit", new VersionCommand("version")); | ||
register("bukkit", new ReloadCommand("reload")); | ||
//register("bukkit", new PluginsCommand("plugins")); // Paper | ||
- register("bukkit", new co.aikar.timings.TimingsCommand("timings")); // Paper | ||
+ //register("bukkit", new co.aikar.timings.TimingsCommand("timings")); // Paper // Luminol - Disable timings warn msg and commands | ||
} | ||
|
||
public void setFallbackCommands() { | ||
diff --git a/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/src/main/java/org/bukkit/plugin/SimplePluginManager.java | ||
index 065352b383d6398382b4f14641859dbfe2e6a355..adb9734f6977583a0cf4a8d81d0c36d463456a0f 100644 | ||
--- a/src/main/java/org/bukkit/plugin/SimplePluginManager.java | ||
+++ b/src/main/java/org/bukkit/plugin/SimplePluginManager.java | ||
@@ -965,7 +965,7 @@ public final class SimplePluginManager implements PluginManager { | ||
* @param use True if per event timing code should be used | ||
*/ | ||
public void useTimings(boolean use) { | ||
- co.aikar.timings.Timings.setTimingsEnabled(use); // Paper | ||
+ // co.aikar.timings.Timings.setTimingsEnabled(use); // Paper // Luminol - Disable timings warn msg and commands | ||
} | ||
|
||
// Paper start |