Advertisement
Guest User

Untitled

a guest
Jun 13th, 2014
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.25 KB | None | 0 0
  1.     @EventHandler
  2.     public void preInit(FMLPreInitializationEvent event) {
  3.         boolean DRM = false;
  4.         if (Loader.isModLoaded("gregtech_addon")) {
  5.             DRM = true;
  6.         }
  7.         if (Loader.isModLoaded("BuildCraft")) {
  8.             DRM = true;
  9.         }
  10.         if (Loader.isModLoaded("TwilightForest")) {
  11.             DRM = true;
  12.         }
  13.         if (Loader.isModLoaded("RotaryCraft")) {
  14.             DRM = true;
  15.         }
  16.         if (Loader.isModLoaded("Forestry")) {
  17.             DRM = true;
  18.         }
  19.         if (Loader.isModLoaded("MineFactoryReloaded")) {
  20.             DRM = true;
  21.         }
  22.         if (Loader.isModLoaded("ReactorCraft")) {
  23.             DRM = true;
  24.         }
  25.         if (Loader.isModLoaded("Railcraft")) {
  26.             DRM = true;
  27.         }
  28.         if (Loader.isModLoaded("DyeTrees")) {
  29.             DRM = true;
  30.         }
  31.         if (Loader.isModLoaded("GeoStrata")) {
  32.             DRM = true;
  33.         }
  34.         if (Loader.isModLoaded("CaveControl")) {
  35.             DRM = true;
  36.         }
  37.         if (Loader.isModLoaded("EnderForest")) {
  38.             DRM = true;
  39.         }
  40.         if (Loader.isModLoaded("ExpandedRedstone")) {
  41.             DRM = true;
  42.         }
  43.         if (Loader.isModLoaded("ComputerCraft")) {
  44.             DRM = true;
  45.         }
  46.         if (Loader.isModLoaded("MeteorCraft")) {
  47.             DRM = true;
  48.         }
  49.         if (Loader.isModLoaded("ElectriCraft")) {
  50.             DRM = true;
  51.         }
  52.         if (DRM) {
  53.             System.out.println("You have some mods with DRM, you must remove these to continue");
  54.             System.exit(0);
  55.         }
  56.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement