Fixed commands not being registered properly
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user