Java Code Examples for net.minecraftforge.fml.common.event.FMLServerStartingEvent#registerServerCommand()

The following examples show how to use net.minecraftforge.fml.common.event.FMLServerStartingEvent#registerServerCommand() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GTMod.java    From GT-Classic with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Mod.EventHandler
public void serverLoad(FMLServerStartingEvent event) {
	event.registerServerCommand(new GTCommandTeleport());
}
 
Example 2
Source File: YouTubeChat.java    From youtube-chat-for-minecraft with Apache License 2.0 4 votes vote down vote up
@EventHandler
public void serverLoad(FMLServerStartingEvent event) {
  YouTubeChatMock.register();
  YouTubeCommand command = new YouTubeCommand((ChatService) YouTubeChat.getService());
  event.registerServerCommand(command);
}
 
Example 3
Source File: Mobycraft.java    From mobycraft with Apache License 2.0 4 votes vote down vote up
@EventHandler
public void registerDockerCommands(FMLServerStartingEvent event) {
	event.registerServerCommand(commands);
}
 
Example 4
Source File: Wizardry.java    From Wizardry with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Mod.EventHandler
public void serverLoad(FMLServerStartingEvent event) {
    event.registerServerCommand(new CommandWizardry());
}
 
Example 5
Source File: ToroQuest.java    From ToroQuest with GNU General Public License v3.0 4 votes vote down vote up
@EventHandler
public void serverLoad(FMLServerStartingEvent e) {
	e.registerServerCommand(new ToroQuestCommand());
}
 
Example 6
Source File: Cyberware.java    From Cyberware with MIT License 4 votes vote down vote up
@EventHandler
public void serverLoad(FMLServerStartingEvent event)
{
	event.registerServerCommand(new CommandClearCyberware());
}
 
Example 7
Source File: ExNihiloAdscensio.java    From ExNihiloAdscensio with MIT License 4 votes vote down vote up
@EventHandler
public static void serverStart(FMLServerStartingEvent event) {
	event.registerServerCommand(new CommandReloadConfig());
}
 
Example 8
Source File: TinkerToolLeveling.java    From TinkersToolLeveling with MIT License 4 votes vote down vote up
@EventHandler
public void serverStart(FMLServerStartingEvent event) {
  event.registerServerCommand(new CommandLevelTool());
}
 
Example 9
Source File: ForgeMain.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Mod.EventHandler
public void serverLoad(FMLServerStartingEvent event) {
    for (Map.Entry<String, FaweCommand> entry : IMP.getCommands().entrySet()) {
        event.registerServerCommand(new ForgeCommand(entry.getKey(), entry.getValue()));
    }
}
 
Example 10
Source File: ForgeMain.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Mod.EventHandler
public void serverLoad(FMLServerStartingEvent event) {
    for (Map.Entry<String, FaweCommand> entry : IMP.getCommands().entrySet()) {
        event.registerServerCommand(new ForgeCommand(entry.getKey(), entry.getValue()));
    }
}
 
Example 11
Source File: ForgeMain.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Mod.EventHandler
public void serverLoad(FMLServerStartingEvent event) {
    for (Map.Entry<String, FaweCommand> entry : IMP.getCommands().entrySet()) {
        event.registerServerCommand(new ForgeCommand(entry.getKey(), entry.getValue()));
    }
}
 
Example 12
Source File: YUNoMakeGoodMap.java    From YUNoMakeGoodMap with Apache License 2.0 4 votes vote down vote up
@EventHandler
public void serverStart(FMLServerStartingEvent event)
{
    event.registerServerCommand(new PlatformCommand());
    event.registerServerCommand(new NewSpawnPlatformCommand());
}
 
Example 13
Source File: OpenMods.java    From OpenModsLib with MIT License 4 votes vote down vote up
@EventHandler
public void severStart(FMLServerStartingEvent evt) {
	evt.registerServerCommand(new CommandConfig("om_config_s", true));
	evt.registerServerCommand(new CommandSource("om_source_s", true, collector));
}
 
Example 14
Source File: HoloInventory.java    From HoloInventory with MIT License 4 votes vote down vote up
@Mod.EventHandler
public void serverStart(FMLServerStartingEvent event)
{
    event.registerServerCommand(new HICommand());
}