package info.u_team.u_team_core.intern.command;

import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;

import info.u_team.u_team_core.intern.command.uteamcore.*;
import net.minecraft.command.CommandSource;

public class UTeamCoreCommand {
	
	public UTeamCoreCommand(CommandDispatcher<CommandSource> dispatcher) {
		dispatcher.register(LiteralArgumentBuilder.<CommandSource> literal("uteamcore") //
				.then(ItemStackInfoSubCommand.register()) //
				.then(DimensionTeleportSubCommand.register()) //
				.then(dispatcher.register(PingSubCommand.register())) //
				.then(LocateBiomeSubCommand.register()) //
				.then(LocateStructureSubCommand.register()));
	}
	
}
package info.u_team.u_team_core.intern.command;

import com.mojang.brigadier.CommandDispatcher;

import info.u_team.u_team_core.intern.command.uteamcore.*;
import net.minecraft.command.*;

public class UTeamCoreCommand {
	
	public UTeamCoreCommand(CommandDispatcher<CommandSource> dispatcher) {
		dispatcher.register(Commands.literal("uteamcore") //
				.then(ItemStackInfoSubCommand.register()) //
				.then(DimensionTeleportSubCommand.register()) //
				.then(dispatcher.register(PingSubCommand.register())) //
				.then(LocateBiomeSubCommand.register()) //
				.then(LocateStructureSubCommand.register()));
	}
	
}
Change to commands.literal