diff --git a/Spigot-API-Patches/Timings-v2.patch b/Spigot-API-Patches/Timings-v2.patch index e7f81f1e91..c2cdcba433 100644 --- a/Spigot-API-Patches/Timings-v2.patch +++ b/Spigot-API-Patches/Timings-v2.patch @@ -2900,6 +2900,18 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 this.label = name; return true; } +@@ -0,0 +0,0 @@ public abstract class Command { + public boolean register(CommandMap commandMap) { + if (allowChangesFrom(commandMap)) { + this.commandMap = commandMap; ++ // Paper start - Some plugins do things the wrong way, try and account for that ++ if (this.timings == null) { ++ this.timings = co.aikar.timings.TimingsManager.getCommandTiming("unknown", this); ++ } ++ // Paper end + return true; + } + diff --git a/src/main/java/org/bukkit/command/FormattedCommandAlias.java b/src/main/java/org/bukkit/command/FormattedCommandAlias.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/command/FormattedCommandAlias.java