@EventHandler
  public void serverLoad(FMLServerStartingEvent event) {

    event.registerServerCommand(new ToggleVampire());
    event.registerServerCommand(new CheckInfo());
    event.registerServerCommand(new VampireCMD());
  }
  @Subscribe
  // @SideOnly(Side.SERVER)
  public void serverStarting(FMLServerStartingEvent ev) {
    // System.out.println("Starting!");
    if (ev.getServer().isDedicatedServer() == false) {
      return;
    }
    ThreadGroup theThreadGroup = new ThreadGroup("BukkitForge");
    this.bThread = new Thread(theThreadGroup, new BukkitStarter(ev.getServer()), "BukkitCoreAPI-0");
    // bThread.setDaemon(false);
    bThread.start();
    // System.out.println("Done!");

    // ForgeEventHandler.ready = true;

    // TickRegistry.registerTickHandler(new DefferedTaskHandler(), Side.SERVER);

    /*bukkitLogger.info("Allowing the API to load, please wait a few seconds...");
    try {
    	Thread.sleep(10000);
    } catch (InterruptedException e) {}*/

    // System.out.println("Hello!");
    // bServer.resetRecipes();
  }
Example #3
0
  @Mod.EventHandler
  public void serverStarting(FMLServerStartingEvent event) {
    event.registerServerCommand(commandBuildcraft);

    if (Utils.CAULDRON_DETECTED) {
      BCLog.logger.warn("############################################");
      BCLog.logger.warn("#                                          #");
      BCLog.logger.warn("#  Cauldron has been detected! Please keep #");
      BCLog.logger.warn("# in mind that BuildCraft does NOT support #");
      BCLog.logger.warn("#   Cauldron and we do not promise to fix  #");
      BCLog.logger.warn("#  bugs caused by its modifications to the #");
      BCLog.logger.warn("#   Minecraft engine. Please reconsider.   #");
      BCLog.logger.warn("#                                          #");
      BCLog.logger.warn("#  Any lag caused by BuildCraft on top of  #");
      BCLog.logger.warn("# Cauldron likely arises from our fixes to #");
      BCLog.logger.warn("#  their bugs, so please don't report that #");
      BCLog.logger.warn("#  either. Thanks for your attention! ~BC  #");
      BCLog.logger.warn("#                                          #");
      BCLog.logger.warn("############################################");

      // To people reading that code and thinking we're lying:
      // Cauldron does not invalidate tile entities properly, causing
      // issues with our tile entity cache. That is the bug and that
      // is also the reason for the extra lag caused when using Cauldron.
    }
  }
Example #4
0
 @Mod.EventHandler
 public void serverStarting(FMLServerStartingEvent event) {
   server = event.getServer();
   ICommandManager commandManager = server.getCommandManager();
   ServerCommandManager serverCommandManager = ((ServerCommandManager) commandManager);
   addCommands(serverCommandManager);
 }
Example #5
0
 @Mod.EventHandler
 public void serverStart(FMLServerStartingEvent event) {
   final MinecraftServer server = event.getServer();
   final ICommandManager commandManager = server.getCommandManager();
   if (commandManager instanceof ServerCommandManager) {
     final ServerCommandManager serverCommandManager = (ServerCommandManager) commandManager;
     serverCommandManager.registerCommand(new CommandGenerateWorld());
   } else {
     FMLLog.warning("Unable to get server command manager. No slash-commands will be available.");
   }
 }
Example #6
0
 @ServerStarting
 public void serverStarting(FMLServerStartingEvent event) {
   CommandHandler commandManager = (CommandHandler) event.getServer().getCommandManager();
   commandManager.registerCommand(new SellCommand());
   commandManager.registerCommand(new BuyCommand());
   commandManager.registerCommand(new CancelOrderCommand());
   commandManager.registerCommand(new ListOrdersCommand());
   commandManager.registerCommand(new BalanceCommand());
   commandManager.registerCommand(new TransactionLogCommand());
   commandManager.registerCommand(new CancelOrderCommand());
   commandManager.registerCommand(new MyOrdersCommand());
 }
  @Override
  public final void serverStart(FMLServerStartingEvent e) {
    String worldName = e.getServer().getFolderName();

    if (useFEBase) {
      baseFile = new File(ForgeEssentials.FEDIR, "saves/" + getName() + "/" + worldName + "/");
    } else {
      File parent = FunctionHelper.getBaseDir();

      if (FMLCommonHandler.instance().getSide().isClient()) {
        parent = new File(FunctionHelper.getBaseDir(), "saves/");
      }

      baseFile = new File(parent, worldName + "/FEData/" + getName() + "/");
    }
  }
Example #8
0
 public void serverStarting(FMLServerStartingEvent event) {
   event.registerServerCommand(new CommandDownloadLatest());
   event.registerServerCommand(new CommandShare());
   event.registerServerCommand(new CommandOpen());
   if (Botania.gardenOfGlassLoaded) event.registerServerCommand(new CommandSkyblockSpread());
 }
Example #9
0
 @Mod.EventHandler
 public void serverStart(FMLServerStartingEvent event) {
   event.registerServerCommand(new PowerKitCommand());
 }
 @Override
 public void serverStarting(FMLServerStartingEvent e) {
   // general
   e.registerServerCommand(new CommandMotd());
   e.registerServerCommand(new CommandRules());
   e.registerServerCommand(new CommandModlist());
   // utility
   e.registerServerCommand(new CommandButcher());
   e.registerServerCommand(new CommandRemove());
   e.registerServerCommand(new CommandSpawnMob());
   e.registerServerCommand(new CommandTPS());
   e.registerServerCommand(new CommandKit());
   e.registerServerCommand(new CommandEnderchest());
   e.registerServerCommand(new CommandVirtualchest());
   e.registerServerCommand(new CommandCapabilities());
   e.registerServerCommand(new CommandSetspawn());
   e.registerServerCommand(new CommandJump());
   e.registerServerCommand(new CommandCraft());
   // op
   e.registerServerCommand(new CommandServerDo());
   // fun
   e.registerServerCommand(new CommandSmite());
   e.registerServerCommand(new CommandBurn());
   e.registerServerCommand(new CommandPotion());
   e.registerServerCommand(new CommandColorize());
   // teleport
   e.registerServerCommand(new CommandBack());
   e.registerServerCommand(new CommandBed());
   e.registerServerCommand(new CommandHome());
   e.registerServerCommand(new CommandSpawn());
   e.registerServerCommand(new CommandTp());
   e.registerServerCommand(new CommandTphere());
   e.registerServerCommand(new CommandTppos());
   e.registerServerCommand(new CommandWarp());
   // cheat
   e.registerServerCommand(new CommandRepair());
   e.registerServerCommand(new CommandHeal());
   // Vanilla Override
   e.registerServerCommand(new CommandBan());
   e.registerServerCommand(new CommandBanIp());
   e.registerServerCommand(new CommandBanlist());
   e.registerServerCommand(new CommandDebug());
   e.registerServerCommand(new CommandDefaultGameMode());
   e.registerServerCommand(new CommandDeop());
   e.registerServerCommand(new CommandDifficulty());
   e.registerServerCommand(new CommandEnchant());
   e.registerServerCommand(new CommandGameRule());
   //		e.registerServerCommand(new CommandHelp());
   e.registerServerCommand(new CommandKick());
   e.registerServerCommand(new CommandMe());
   e.registerServerCommand(new CommandOp());
   e.registerServerCommand(new CommandPardon());
   e.registerServerCommand(new CommandPardonIp());
   e.registerServerCommand(new CommandPublish());
   e.registerServerCommand(new CommandSaveAll());
   e.registerServerCommand(new CommandSaveOff());
   e.registerServerCommand(new CommandSaveOn());
   e.registerServerCommand(new CommandSay());
   e.registerServerCommand(new CommandSeed());
   e.registerServerCommand(new CommandStop());
   e.registerServerCommand(new CommandTell());
   e.registerServerCommand(new CommandTime());
   e.registerServerCommand(new CommandToggleDownfall());
   e.registerServerCommand(new CommandWeather());
   e.registerServerCommand(new CommandWhitelist());
   e.registerServerCommand(new CommandXP());
   e.registerServerCommand(new CommandKill());
   e.registerServerCommand(new CommandGive());
   e.registerServerCommand(new CommandClearInventory());
   e.registerServerCommand(new CommandGameMode());
 }
Example #11
0
 @EventHandler
 public void serverStarting(FMLServerStartingEvent event) {
   // THIS EVENT IS NOT FIRED ON SMP SERVERS
   event.registerServerCommand(new CommandFps());
   event.registerServerCommand(new CommandZyinHUDOptions());
 }
Example #12
0
 public void register(FMLServerStartingEvent e) {
   list.add(this);
   e.registerServerCommand(this);
 }
 public static void regOverrides(FMLServerStartingEvent e) {
   e.registerServerCommand(new CommandBan());
   e.registerServerCommand(new CommandBanIp());
   e.registerServerCommand(new CommandBanlist());
   e.registerServerCommand(new CommandDebug());
   e.registerServerCommand(new CommandDefaultGameMode());
   e.registerServerCommand(new CommandDeop());
   e.registerServerCommand(new CommandDifficulty());
   e.registerServerCommand(new CommandEnchant());
   e.registerServerCommand(new CommandGameRule());
   e.registerServerCommand(new CommandKick());
   e.registerServerCommand(new CommandMe());
   e.registerServerCommand(new CommandOp());
   e.registerServerCommand(new CommandPardon());
   e.registerServerCommand(new CommandPardonIp());
   e.registerServerCommand(new CommandPublish());
   e.registerServerCommand(new CommandSaveAll());
   e.registerServerCommand(new CommandSaveOff());
   e.registerServerCommand(new CommandSaveOn());
   e.registerServerCommand(new CommandSay());
   e.registerServerCommand(new CommandSeed());
   e.registerServerCommand(new CommandStop());
   e.registerServerCommand(new CommandTell());
   e.registerServerCommand(new CommandTime());
   e.registerServerCommand(new CommandToggleDownfall());
   e.registerServerCommand(new CommandWeather());
   e.registerServerCommand(new CommandWhitelist());
   e.registerServerCommand(new CommandXP());
 }
 @ServerStarting
 public void serverStarting(FMLServerStartingEvent event) {
   CommandHandler commandManager = (CommandHandler) event.getServer().getCommandManager();
   commandManager.registerCommand(new CommandTaleofKingdoms());
 }
Example #15
0
 @EventHandler
 public void serverStarting(FMLServerStartingEvent event) {
   event.registerServerCommand(new CommandBuildCraft());
 }
 @EventHandler
 public void serverLoad(FMLServerStartingEvent event) {
   event.registerServerCommand(new FindIDCommand());
   event.registerServerCommand(new FindIDFromHandCommand());
 }
Example #17
0
 @EventHandler
 public void onServerStarting(FMLServerStartingEvent event) {
   event.registerServerCommand(new CommandRU());
 }
 @Mod.EventHandler
 public void serverStarting(FMLServerStartingEvent event) {
   event.registerServerCommand(new CommandHandler());
 }
 @Mod.EventHandler
 public void serverStart(FMLServerStartingEvent event) {
   event.registerServerCommand(new CommandArmourers());
   SkinDataCache.INSTANCE.serverStarted();
 }