Add support for "/chase", a disabled Minecraft command. (#1690)

Co-authored-by: granny <granny@purpurmc.org>
This commit is contained in:
Mickey42302
2025-07-11 00:53:58 -04:00
committed by GitHub
parent 4d5a8e6ebd
commit 7dbe41536b
3 changed files with 20 additions and 1 deletions

View File

@@ -9,6 +9,19 @@
RaidCommand.register(this.dispatcher, context);
DebugPathCommand.register(this.dispatcher);
DebugMobSpawningCommand.register(this.dispatcher);
@@ -264,6 +_,12 @@
}
}
+ // Purpur start - register disabled minecraft commands
+ if (org.purpurmc.purpur.PurpurConfig.registerMinecraftDisabledCommands) {
+ net.minecraft.server.commands.ChaseCommand.register(this.dispatcher);
+ }
+ // Purpur end - register disabled minecraft commands
+
if (selection.includeDedicated) {
BanIpCommands.register(this.dispatcher);
BanListCommands.register(this.dispatcher);
@@ -280,6 +_,14 @@
StopCommand.register(this.dispatcher);
TransferCommand.register(this.dispatcher);