Java 类cpw.mods.fml.common.Mod.ServerStarting 实例源码

项目:UrbanCraft-CommandForwarder    文件:CommandForwarder.java   
@ServerStarting
public void serverStarting(FMLServerStartingEvent e) {
    for (Command cmd : commands) {
        e.registerServerCommand(cmd);
        logger.info("Command " + cmd.getCommandName() + " registred.");
    }
}
项目:secri    文件:Maeme.java   
@ServerStarting
public void onServerStart(FMLServerStartingEvent event) {
    if (MinecraftServer.getServer().getCommandManager() instanceof ServerCommandManager) {
        ((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).registerCommand(new CommandSpawn());
        ((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).registerCommand(new CommandStruc());
        ((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).registerCommand(new CommandFreeze());
        ((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).registerCommand(new CommandHeal());
    }
}
项目:InvScan    文件:InvScanLive.java   
@ServerStarting
// register commands
public void serverLoad(FMLServerStartingEvent event) {
    event.registerServerCommand(new Commands());
    MinecraftForge.EVENT_BUS.register(new Signs());
    if(!Config.Refrate.equals(0)){
    TickRegistry.registerScheduledTickHandler(new Scheduler(), Side.SERVER);
    }
    else{System.out.println("[INFO] [InvScan] Config value for timer is false! ignoring timer");}
}
项目:Apocalyptic    文件:Apocalyptic.java   
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) {

    event.registerServerCommand(new AdminCommand());

    event.registerServerCommand(new RegenerationCommand());

    event.registerServerCommand(new TeleportationCommand());

    event.registerServerCommand(new InfoCommand());

    BlockStone.silverfishChance = silverfishChance;
    apLogger.info("[Apocalyptic] Silverfish spawn chance setted");

    mlt = new MainLifeThread();
    apLogger.info("[Apocalyptic] Main life system loaded");

    PermissionNode.setPermissions();
    apLogger.info("[Apocalyptic] Apocalyptic permissions setted");
}
项目:ForestryLegacy    文件:Forestry.java   
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) {
    core.serverStarting(event.getServer());
}
项目:MineTech    文件:MineTechPlus.java   
@ServerStarting
public void serverStart(FMLServerStartingEvent e){
    e.registerServerCommand(new CommandMineTech());
}
项目:Badger-Mod    文件:BadgerMod.java   
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) 
{

}
项目:Reliquary    文件:Reliquary.java   
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) {
    // Initialize the custom commands
}
项目:someluigis-peripherals    文件:SLPMod.java   
@ServerStarting
public void serverstarting(FMLServerStartingEvent evt) {

    evt.registerServerCommand(new SLPCommand());

    this.l = Logger.getLogger("SLPMod");

    if (httpdEnabled) {

        this.l.info("Starting Simple HTTP Server NOW! - on port "
                + httpdPort);
        SLPMod.httpdStat = EnumChatFormatting.GREEN + "ENABLED (port "
                + httpdPort + ")";
        SLPHTTPServer.start(httpdPort);
        this.l.info("HTTP Server is started.");
        this.l.info("HTTP Server is using simpleframework, simpleframework.org");

    } else {

        SLPMod.httpdStat = EnumChatFormatting.RED + "DISABLED";
        this.l.info("HTTP Server is disabled in the config, will not start.");

    }

}
项目:ModHearthstone    文件:ModHearthstone.java   
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) {

}