net.minecraftforge.fml.common.event.FMLServerStartingEvent Java Examples
The following examples show how to use
net.minecraftforge.fml.common.event.FMLServerStartingEvent.
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: Roguelike.java From minecraft-roguelike with GNU General Public License v3.0 | 5 votes |
@EventHandler public void serverStart(FMLServerStartingEvent event){ MinecraftServer server = event.getServer(); ICommandManager command = server.getCommandManager(); ServerCommandManager serverCommand = ((ServerCommandManager) command); serverCommand.registerCommand(new CommandRoguelike()); }
Example #2
Source File: EnderUtilities.java From enderutilities with GNU Lesser General Public License v3.0 | 5 votes |
@Mod.EventHandler public void onServerStartingEvent(FMLServerStartingEvent event) { //EnderUtilities.logger.info("Clearing chunk loading timeouts"); ConfigReader.reLoadAllConfigs(true); ChunkLoading.getInstance().init(); EnergyBridgeTracker.readFromDisk(); PlacementProperties.getInstance().readFromDisk(); }
Example #3
Source File: NovaMinecraft.java From NOVA-Core with GNU Lesser General Public License v3.0 | 4 votes |
@Mod.EventHandler public void serverStarting(FMLServerStartingEvent event) { Game.events().publish(new ServerEvent.Start()); }
Example #4
Source File: HoloInventory.java From HoloInventory with MIT License | 4 votes |
@Mod.EventHandler public void serverStart(FMLServerStartingEvent event) { event.registerServerCommand(new HICommand()); }
Example #5
Source File: OpenMods.java From OpenModsLib with MIT License | 4 votes |
@EventHandler public void severStart(FMLServerStartingEvent evt) { evt.registerServerCommand(new CommandConfig("om_config_s", true)); evt.registerServerCommand(new CommandSource("om_source_s", true, collector)); }
Example #6
Source File: YUNoMakeGoodMap.java From YUNoMakeGoodMap with Apache License 2.0 | 4 votes |
@EventHandler public void serverStart(FMLServerStartingEvent event) { event.registerServerCommand(new PlatformCommand()); event.registerServerCommand(new NewSpawnPlatformCommand()); }
Example #7
Source File: IProxy.java From AgriCraft with MIT License | 4 votes |
@Override default void onServerStarting(FMLServerStartingEvent event) { // This is to be moved to infinity lib in a future version, I would expect. AgriCore.getLogger("agricraft").info("Registering AgriCraft Commands."); ReflectionHelper.forEachValueIn(AgriCraft.instance.getModCommandRegistry(), ICommand.class, event::registerServerCommand); }
Example #8
Source File: TFC2Core.java From TFC2 with GNU General Public License v3.0 | 4 votes |
@EventHandler public void serverStarting(FMLServerStartingEvent evt) { }
Example #9
Source File: ForgeMain.java From FastAsyncWorldedit with GNU General Public License v3.0 | 4 votes |
@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 |
@Mod.EventHandler public void serverLoad(FMLServerStartingEvent event) { IMP.insertCommands(); }
Example #11
Source File: ForgeMain.java From FastAsyncWorldedit with GNU General Public License v3.0 | 4 votes |
@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: ForgeMain.java From FastAsyncWorldedit with GNU General Public License v3.0 | 4 votes |
@Mod.EventHandler public void serverLoad(FMLServerStartingEvent event) { IMP.insertCommands(); }
Example #13
Source File: ForgeMain.java From FastAsyncWorldedit with GNU General Public License v3.0 | 4 votes |
@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 #14
Source File: TraverseMod.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void onServerStarting(final FMLServerStartingEvent event) { proxy.serverStarting(event); }
Example #15
Source File: NovaMinecraft.java From NOVA-Core with GNU Lesser General Public License v3.0 | 4 votes |
@Mod.EventHandler public void serverStarting(FMLServerStartingEvent event) { Game.events().publish(new ServerEvent.Start()); }
Example #16
Source File: TinkerToolLeveling.java From TinkersToolLeveling with MIT License | 4 votes |
@EventHandler public void serverStart(FMLServerStartingEvent event) { event.registerServerCommand(new CommandLevelTool()); }
Example #17
Source File: Signals.java From Signals with GNU General Public License v3.0 | 4 votes |
@EventHandler public void onServerStart(FMLServerStartingEvent event){ ServerCommandManager comManager = (ServerCommandManager)event.getServer().getCommandManager(); comManager.registerCommand(new CommandSignals()); }
Example #18
Source File: ExNihiloAdscensio.java From ExNihiloAdscensio with MIT License | 4 votes |
@EventHandler public static void serverStart(FMLServerStartingEvent event) { event.registerServerCommand(new CommandReloadConfig()); }
Example #19
Source File: ValkyrienSkiesMod.java From Valkyrien-Skies with Apache License 2.0 | 4 votes |
@EventHandler public void serverStart(FMLServerStartingEvent event) { MinecraftServer server = event.getServer(); VSModCommandRegistry.registerCommands(server); }
Example #20
Source File: Cyberware.java From Cyberware with MIT License | 4 votes |
@EventHandler public void serverLoad(FMLServerStartingEvent event) { event.registerServerCommand(new CommandClearCyberware()); }
Example #21
Source File: ToroQuest.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
@EventHandler public void serverLoad(FMLServerStartingEvent e) { e.registerServerCommand(new ToroQuestCommand()); }
Example #22
Source File: Wizardry.java From Wizardry with GNU Lesser General Public License v3.0 | 4 votes |
@Mod.EventHandler public void serverLoad(FMLServerStartingEvent event) { event.registerServerCommand(new CommandWizardry()); }
Example #23
Source File: Mobycraft.java From mobycraft with Apache License 2.0 | 4 votes |
@EventHandler public void registerDockerCommands(FMLServerStartingEvent event) { event.registerServerCommand(commands); }
Example #24
Source File: YouTubeChat.java From youtube-chat-for-minecraft with Apache License 2.0 | 4 votes |
@EventHandler public void serverLoad(FMLServerStartingEvent event) { YouTubeChatMock.register(); YouTubeCommand command = new YouTubeCommand((ChatService) YouTubeChat.getService()); event.registerServerCommand(command); }
Example #25
Source File: GTMod.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
@Mod.EventHandler public void serverLoad(FMLServerStartingEvent event) { event.registerServerCommand(new GTCommandTeleport()); }