package info.u_team.u_team_core.intern.init;

import info.u_team.u_team_core.UCoreMod;
import info.u_team.u_team_core.intern.command.UTeamCoreCommand;
import net.minecraftforge.event.RegisterCommandsEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;

@EventBusSubscriber(modid = UCoreMod.MODID, bus = Bus.FORGE)
public class UCoreCommands {
	
	@SubscribeEvent
	public static void on(RegisterCommandsEvent event) {
		new UTeamCoreCommand(event.getDispatcher());
	}
	
}

package info.u_team.u_team_core.intern.init;

import info.u_team.u_team_core.intern.command.UTeamCoreCommand;
import net.minecraftforge.event.RegisterCommandsEvent;
import net.minecraftforge.eventbus.api.IEventBus;

public class UCoreCommands {
	
	private static void onRegisterCommands(RegisterCommandsEvent event) {
		new UTeamCoreCommand(event.getDispatcher());
	}
	
	public static void registerForge(IEventBus bus) {
		bus.addListener(UCoreCommands::onRegisterCommands);
	}
}

Remove the annotations from u core commands and migrate to the new system
Remove the annotations from u core commands and migrate to the new
system