Exemplo n.º 1
0
  public TranslationWritter() {
    translationFile = new File(CheatingEssentials.modinstance.minecraft.mcDataDir, "/CP2/gui.lang");

    if (!translationFile.exists()) {
      try {
        translationFile.getParentFile().mkdirs();
        translationFile.createNewFile();
        FileWriter fstream = new FileWriter(translationFile);
        BufferedWriter out = new BufferedWriter(fstream);
        cb.CELogAgent.logInfo("Writting Translation File...");
        out.write("GuiInventory.LabelCrafting=Crafting" + "\r\n");
        out.write("GuiItemSelection.LabelItemSelection=Item selection" + "\r\n");
        out.write("GuiHealthFood.LabelTitle=Health and food" + "\r\n");
        out.write("GuiHealthFood.LabelFoodLevel=Food Level" + "\r\n");
        out.write("GuiHealthFood.LabelSaturation=Saturation" + "\r\n");
        out.write("GuiHealthFood.LabelExhaustion=Exhaustion" + "\r\n");
        out.write("GuiHealthFood.ButtonSet=Set" + "\r\n");
        out.write("GuiEnchanting.LabelTitle=Enchanting" + "\r\n");
        out.write("GuiExperience.LabelTitle=Experience" + "\r\n");
        out.write("GuiExperience.LabelLevel=Level" + "\r\n");
        out.write("GuiExperience.LabelPercentage=Percentage" + "\r\n");
        out.write("GuiExperience.LabelScore=Score" + "\r\n");
        out.write("GuiExperience.ButtonSet=Set" + "\r\n");
        out.write("GuiPotionEffects.LabelTitle=Potion Effects" + "\r\n");
        out.write("GuiPotionEffects.LabelLevel=Level" + "\r\n");
        out.write("GuiPotionEffects.LabelMinutes=Minutes" + "\r\n");
        out.write("GuiPotionEffects.LabelSeconds=Seconds" + "\r\n");
        out.write("GuiPotionEffects.ButtonSet=Set" + "\r\n");
        out.write("GuiPotionEffects.ButtonUnset=Unset" + "\r\n");
        out.write("GuiBrewing.LabelTitle=Brewing" + "\r\n");
        out.write("GuiBrewing.LabelLevel=Level" + "\r\n");
        out.write("GuiBrewing.LabelMinutes=Minutes" + "\r\n");
        out.write("GuiBrewing.ButtonSet=Set" + "\r\n");
        out.write("GuiTeleport.LabelTitle=Teleporting" + "\r\n");
        out.write("GuiTeleport.LabelPosX=Pos X" + "\r\n");
        out.write("GuiTeleport.LabelPosY=Pos Y" + "\r\n");
        out.write("GuiTeleport.LabelPosZ=Pos Z" + "\r\n");
        out.write("GuiTeleport.ButtonTeleport=Teleport" + "\r\n");
        out.write("GuiMoreOptions.LabelTitle=More Options" + "\r\n");
        out.write("GuiMoreOptions.ButtonDisableFOV=Disable FOV" + "\r\n");
        out.write("GuiMoreOptions.ButtonInstantDrops=Instant drops" + "\r\n");
        out.write("GuiMoreOptions.ButtonInstantExperience=Instant EXP" + "\r\n");
        out.write("GuiMoreOptions.ButtonGuiPausingGame=Gui pausing game" + "\r\n");
        out.write("GuiMoreOptions.ButtonFlying=Flying" + "\r\n");
        out.write("GuiMoreOptions.ButtonInvulnerable=Invulnerable" + "\r\n");
        out.write("GuiMoreOptions.ButtonKillersight=Killer sight" + "\r\n");
        out.write("GuiMoreOptions.ButtonCreative=Creative mode" + "\r\n");
        out.write("GuiDeathScreen.ButtonContinue=Continue" + "\r\n");
        out.write("GuiDeathScreen.LabelCoordinates=Coordinates = %coord%" + "\r\n");
        out.write("GuiMain.Player=Player" + "\r\n");
        out.write("GuiMain.LabelActiveCheats=Active Cheats" + "\r\n");
        out.write("GuiMain.World=World" + "\r\n");
        out.write("GuiMain.Console=Console" + "\r\n");
        out.write("GuiMain.Keybinds=Keybinds" + "\r\n");
        out.write("GuiMain.Radar=Radar" + "\r\n");
        out.write("GuiMain.Minimap=Minimap" + "\r\n");
        out.write("GuiMain.LabelPlayerInfo=PlayerInfo" + "\r\n");
        out.close();
      } catch (Exception e) // Catch exception if any
      {
        System.out.println("Error writing the Translation File!");
      }

      Reader();
    } else {
      Reader();
    }
  }