112 lines
5.9 KiB
Diff
112 lines
5.9 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: AlphaKR93 <dev@alpha93.kr>
|
|
Date: Wed, 22 Jan 2025 11:32:58 +0900
|
|
Subject: [PATCH] Register every commands
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/commands/Commands.java b/src/main/java/net/minecraft/commands/Commands.java
|
|
index 2ef4dc9169a9bec304b4922a2e91c31b966c711d..c416b1eaf27699de59aaa6b352ff1aa991d3f660 100644
|
|
--- a/src/main/java/net/minecraft/commands/Commands.java
|
|
+++ b/src/main/java/net/minecraft/commands/Commands.java
|
|
@@ -44,91 +44,7 @@ import net.minecraft.network.chat.MutableComponent;
|
|
import net.minecraft.network.protocol.game.ClientboundCommandsPacket;
|
|
import net.minecraft.resources.ResourceKey;
|
|
import net.minecraft.server.MinecraftServer;
|
|
-import net.minecraft.server.commands.AdvancementCommands;
|
|
-import net.minecraft.server.commands.AttributeCommand;
|
|
-import net.minecraft.server.commands.BanIpCommands;
|
|
-import net.minecraft.server.commands.BanListCommands;
|
|
-import net.minecraft.server.commands.BanPlayerCommands;
|
|
-import net.minecraft.server.commands.BossBarCommands;
|
|
-import net.minecraft.server.commands.ClearInventoryCommands;
|
|
-import net.minecraft.server.commands.CloneCommands;
|
|
-import net.minecraft.server.commands.DamageCommand;
|
|
-import net.minecraft.server.commands.DataPackCommand;
|
|
-import net.minecraft.server.commands.DeOpCommands;
|
|
-import net.minecraft.server.commands.DebugCommand;
|
|
-import net.minecraft.server.commands.DebugConfigCommand;
|
|
-import net.minecraft.server.commands.DebugMobSpawningCommand;
|
|
-import net.minecraft.server.commands.DebugPathCommand;
|
|
-import net.minecraft.server.commands.DefaultGameModeCommands;
|
|
-import net.minecraft.server.commands.DifficultyCommand;
|
|
-import net.minecraft.server.commands.EffectCommands;
|
|
-import net.minecraft.server.commands.EmoteCommands;
|
|
-import net.minecraft.server.commands.EnchantCommand;
|
|
-import net.minecraft.server.commands.ExecuteCommand;
|
|
-import net.minecraft.server.commands.ExperienceCommand;
|
|
-import net.minecraft.server.commands.FillBiomeCommand;
|
|
-import net.minecraft.server.commands.FillCommand;
|
|
-import net.minecraft.server.commands.ForceLoadCommand;
|
|
-import net.minecraft.server.commands.FunctionCommand;
|
|
-import net.minecraft.server.commands.GameModeCommand;
|
|
-import net.minecraft.server.commands.GameRuleCommand;
|
|
-import net.minecraft.server.commands.GiveCommand;
|
|
-import net.minecraft.server.commands.HelpCommand;
|
|
-import net.minecraft.server.commands.ItemCommands;
|
|
-import net.minecraft.server.commands.JfrCommand;
|
|
-import net.minecraft.server.commands.KickCommand;
|
|
-import net.minecraft.server.commands.KillCommand;
|
|
-import net.minecraft.server.commands.ListPlayersCommand;
|
|
-import net.minecraft.server.commands.LocateCommand;
|
|
-import net.minecraft.server.commands.LootCommand;
|
|
-import net.minecraft.server.commands.MsgCommand;
|
|
-import net.minecraft.server.commands.OpCommand;
|
|
-import net.minecraft.server.commands.PardonCommand;
|
|
-import net.minecraft.server.commands.PardonIpCommand;
|
|
-import net.minecraft.server.commands.ParticleCommand;
|
|
-import net.minecraft.server.commands.PerfCommand;
|
|
-import net.minecraft.server.commands.PlaceCommand;
|
|
-import net.minecraft.server.commands.PlaySoundCommand;
|
|
-import net.minecraft.server.commands.PublishCommand;
|
|
-import net.minecraft.server.commands.RaidCommand;
|
|
-import net.minecraft.server.commands.RandomCommand;
|
|
-import net.minecraft.server.commands.RecipeCommand;
|
|
-import net.minecraft.server.commands.ReloadCommand;
|
|
-import net.minecraft.server.commands.ReturnCommand;
|
|
-import net.minecraft.server.commands.RideCommand;
|
|
-import net.minecraft.server.commands.RotateCommand;
|
|
-import net.minecraft.server.commands.SaveAllCommand;
|
|
-import net.minecraft.server.commands.SaveOffCommand;
|
|
-import net.minecraft.server.commands.SaveOnCommand;
|
|
-import net.minecraft.server.commands.SayCommand;
|
|
-import net.minecraft.server.commands.ScheduleCommand;
|
|
-import net.minecraft.server.commands.ScoreboardCommand;
|
|
-import net.minecraft.server.commands.SeedCommand;
|
|
-import net.minecraft.server.commands.ServerPackCommand;
|
|
-import net.minecraft.server.commands.SetBlockCommand;
|
|
-import net.minecraft.server.commands.SetPlayerIdleTimeoutCommand;
|
|
-import net.minecraft.server.commands.SetSpawnCommand;
|
|
-import net.minecraft.server.commands.SetWorldSpawnCommand;
|
|
-import net.minecraft.server.commands.SpawnArmorTrimsCommand;
|
|
-import net.minecraft.server.commands.SpectateCommand;
|
|
-import net.minecraft.server.commands.SpreadPlayersCommand;
|
|
-import net.minecraft.server.commands.StopCommand;
|
|
-import net.minecraft.server.commands.StopSoundCommand;
|
|
-import net.minecraft.server.commands.SummonCommand;
|
|
-import net.minecraft.server.commands.TagCommand;
|
|
-import net.minecraft.server.commands.TeamCommand;
|
|
-import net.minecraft.server.commands.TeamMsgCommand;
|
|
-import net.minecraft.server.commands.TeleportCommand;
|
|
-import net.minecraft.server.commands.TellRawCommand;
|
|
-import net.minecraft.server.commands.TickCommand;
|
|
-import net.minecraft.server.commands.TimeCommand;
|
|
-import net.minecraft.server.commands.TitleCommand;
|
|
-import net.minecraft.server.commands.TransferCommand;
|
|
-import net.minecraft.server.commands.TriggerCommand;
|
|
-import net.minecraft.server.commands.WardenSpawnTrackerCommand;
|
|
-import net.minecraft.server.commands.WeatherCommand;
|
|
-import net.minecraft.server.commands.WhitelistCommand;
|
|
-import net.minecraft.server.commands.WorldBorderCommand;
|
|
+import net.minecraft.server.commands.*; // Plazma - Register all commands
|
|
import net.minecraft.server.commands.data.DataCommands;
|
|
import net.minecraft.server.level.ServerPlayer;
|
|
import net.minecraft.tags.TagKey;
|
|
@@ -234,6 +150,7 @@ public class Commands {
|
|
WardenSpawnTrackerCommand.register(this.dispatcher);
|
|
SpawnArmorTrimsCommand.register(this.dispatcher);
|
|
ServerPackCommand.register(this.dispatcher);
|
|
+ ChaseCommand.register(this.dispatcher); // Plazma - Register all commands
|
|
if (environment.includeDedicated) {
|
|
DebugConfigCommand.register(this.dispatcher);
|
|
}
|