Fixed commands not being registered properly

This commit is contained in:
2025-11-19 09:35:52 +01:00
parent 8f171110ed
commit 1e2e337e24
2 changed files with 5 additions and 8 deletions
@@ -16,11 +16,13 @@ import net.minecraft.commands.arguments.EntityArgument;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.chat.Component;
import net.minecraft.server.level.ServerPlayer;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.network.PacketDistributor;
public class AscendCommand {
public static void register(CommandDispatcher<CommandSourceStack> dispatcher) {
dispatcher.register(
@SubscribeEvent
public static void onRegisterCommands(net.minecraftforge.event.RegisterCommandsEvent event) {
event.getDispatcher().register(
Commands.literal("ascend")
.requires(src -> src.hasPermission(2))
.then(Commands.literal("get")