LoadProperties.java 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. package com.gmail.nossr50.config;
  2. import com.gmail.nossr50.mcMMO;
  3. import java.io.File;
  4. import java.io.IOException;
  5. import org.bukkit.configuration.file.FileConfiguration;
  6. import com.gmail.nossr50.datatypes.HUDType;
  7. public class LoadProperties {
  8. /*
  9. * GENERAL SETTINGS
  10. */
  11. public static String locale;
  12. public static Boolean enableMotd, statsTracking, eventCallback;
  13. public static int saveInterval;
  14. /* mySQL */
  15. public static Boolean useMySQL;
  16. public static String MySQLtablePrefix, MySQLuserName, MySQLserverName, MySQLdbName, MySQLdbPass;
  17. public static int MySQLport;
  18. /* Commands */
  19. public static Boolean xplockEnable, xprateEnable, mccEnable, mcmmoEnable,
  20. partyEnable, inviteEnable, acceptEnable, inspectEnable,
  21. mcstatsEnable, addxpEnable, ptpEnable, mmoeditEnable,
  22. mcremoveEnable, mcgodEnable, mcabilityEnable, mctopEnable,
  23. addlevelsEnable, mcrefreshEnable, aEnable, pEnable;
  24. public static Boolean aDisplayNames, pDisplayNames;
  25. public static int ptpCommandCooldown;
  26. public static Boolean donateMessage;
  27. /* Tool Level Requirements */
  28. public static Boolean perLevelTools;
  29. public static int sAxe, sHoe, sShovel, sSword, sPickaxe;
  30. public static int iAxe, iHoe, iShovel, iSword, iPickaxe;
  31. public static int gAxe, gHoe, gShovel, gSword, gPickaxe;
  32. public static int dAxe, dHoe, dShovel, dSword, dPickaxe;
  33. /* Items */
  34. public static Boolean chimaeraWingEnable;
  35. public static int chimaeraId, feathersConsumedByChimaeraWing;
  36. /*
  37. * ABILITY SETTINGS
  38. */
  39. /* General Settings */
  40. public static Boolean enableOnlyActivateWhenSneaking, enableAbilityMessages, enableAbilities;
  41. /* Durability Settings */
  42. public static Boolean toolsLoseDurabilityFromAbilities;
  43. public static int abilityDurabilityLoss;
  44. /* Cooldowns */
  45. public static int superBreakerCooldown, blastMiningCooldown, greenTerraCooldown,
  46. gigaDrillBreakerCooldown, treeFellerCooldown, berserkCooldown,
  47. serratedStrikeCooldown, skullSplitterCooldown;
  48. /* Thresholds */
  49. public static int treeFellerThreshold;
  50. /*
  51. * SKILL SETTINGS
  52. */
  53. /* Tool Requirements */
  54. public static Boolean miningrequirespickaxe, excavationRequiresShovel, woodcuttingrequiresaxe;
  55. /* Excavation */
  56. public static int mbase;
  57. /* Fishing */
  58. public static Boolean fishingDrops;
  59. public static int fishingTier1, fishingTier2, fishingTier3, fishingTier4, fishingTier5;
  60. public static int mfishing;
  61. /* Herbalism */
  62. public static Boolean herbalismHungerBonus, wheatRegrowth;
  63. public static int mmelon, mcactus, mmushroom, mflower, msugar, mpumpkin, mwheat, mvines, mlilypad, mnetherwart;
  64. public static Boolean enableCobbleToMossy, enableSmoothToMossy, enableDirtToGrass;
  65. /* Mining */
  66. public static int msandstone, mgold, mdiamond, miron, mredstone, mlapis, mobsidian, mnetherrack, mglowstone, mcoal, mstone, mendstone, mmossstone;
  67. public static int detonatorID;
  68. /* Repair */
  69. public static Boolean repairArmor, repairTools;
  70. public static Boolean anvilmessages;
  71. public static int rWood, rStone, rIron, rGold, rDiamond, rString, rLeather;
  72. public static int anvilID;
  73. public static int repairStoneLevel, repairIronLevel, repairGoldLevel, repairdiamondlevel;
  74. /* Taming */
  75. public static int mtameWolf, mtameOcelot;
  76. public static int bonesConsumedByCOTW, fishConsumedByCOTW;
  77. /* Woodcutting */
  78. public static int moak, mbirch, mspruce, mjungle;
  79. /* Arcane Forging */
  80. public static Boolean mayDowngradeEnchants, mayLoseEnchants;
  81. public static int arcaneRank1, arcaneRank2, arcaneRank3, arcaneRank4;
  82. public static int downgradeRank1, downgradeRank2, downgradeRank3, downgradeRank4;
  83. public static int keepEnchantsRank1, keepEnchantsRank2, keepEnchantsRank3, keepEnchantsRank4;
  84. /* Level Caps */
  85. public static int levelCapAcrobatics, levelCapArchery, levelCapAxes, levelCapExcavation,
  86. levelCapFishing, levelCapHerbalism, levelCapMining, levelCapRepair,
  87. levelCapSwords, levelCapTaming, levelCapUnarmed, levelCapWoodcutting;
  88. /*
  89. * XP SETTINGS
  90. */
  91. public static Boolean xpGainsMobSpawners, pvpxp;
  92. public static int xpGainMultiplier;
  93. /* Combat XP Multipliers */
  94. public static double pvpxprewardmodifier;
  95. public static double animalXP, creeperXP, skeletonXP, spiderXP, ghastXP, slimeXP,
  96. zombieXP, pigzombieXP, endermanXP, cavespiderXP, silverfishXP,
  97. blazeXP, magmacubeXP, enderdragonXP;
  98. /* XP Formula Multiplier */
  99. public static double tamingxpmodifier, miningxpmodifier, repairxpmodifier, woodcuttingxpmodifier,
  100. fishingxpmodifier, unarmedxpmodifier, herbalismxpmodifier, excavationxpmodifier,
  101. archeryxpmodifier, swordsxpmodifier, axesxpmodifier, acrobaticsxpmodifier;
  102. /*
  103. * SPOUT SETTINGS
  104. */
  105. public static Boolean spoutEnabled;
  106. /* Spout Party HUD */
  107. public static Boolean showDisplayName, showFaces, partybar;
  108. /* Spout XP Bar */
  109. public static Boolean xpbar, xpicon;
  110. public static int xpbar_x, xpbar_y, xpicon_x, xpicon_y;
  111. /* Spout HUD Colors */
  112. public static double xpbackground_r, xpbackground_g, xpbackground_b;
  113. public static double xpborder_r, xpborder_g, xpborder_b;
  114. public static double fishing_r, fishing_g, fishing_b;
  115. public static double acrobatics_r, acrobatics_g, acrobatics_b;
  116. public static double archery_r, archery_g, archery_b;
  117. public static double axes_r, axes_g, axes_b;
  118. public static double excavation_r, excavation_g, excavation_b;
  119. public static double herbalism_r, herbalism_g, herbalism_b;
  120. public static double mining_r, mining_g, mining_b;
  121. public static double repair_r, repair_g, repair_b;
  122. public static double swords_r, swords_g, swords_b;
  123. public static double taming_r, taming_g, taming_b;
  124. public static double unarmed_r, unarmed_g, unarmed_b;
  125. public static double woodcutting_r, woodcutting_g, woodcutting_b;
  126. /*
  127. * CONFIG LOADING
  128. */
  129. public static HUDType defaulthud;
  130. protected static File configFile;
  131. protected static File dataFolder;
  132. protected final mcMMO plugin;
  133. protected static FileConfiguration config;
  134. public LoadProperties(mcMMO plugin) {
  135. this.plugin = plugin;
  136. dataFolder = plugin.getDataFolder();
  137. configFile = new File(dataFolder, File.separator + "config.yml");
  138. config = plugin.getConfig();
  139. }
  140. /**
  141. * Load this config file.
  142. */
  143. public void load() {
  144. // If it doesn't exist, copy it from the .jar
  145. if (!configFile.exists()) {
  146. dataFolder.mkdir();
  147. plugin.saveDefaultConfig();
  148. }
  149. addDefaults();
  150. loadKeys();
  151. }
  152. /**
  153. * Save this config file.
  154. */
  155. private static void saveConfig() {
  156. try {
  157. config.save(configFile);
  158. }
  159. catch (IOException e) {
  160. e.printStackTrace();
  161. }
  162. }
  163. /**
  164. * Add the defaults to this config file.
  165. */
  166. private void addDefaults() {
  167. // Load from included config.yml
  168. config.options().copyDefaults(true);
  169. saveConfig();
  170. }
  171. /**
  172. * Load the keys from this config file.
  173. */
  174. private void loadKeys() {
  175. plugin.getLogger().info("Loading mcMMO config.yml File...");
  176. // Setup default HUD
  177. String temp = config.getString("Spout.HUD.Default", "STANDARD");
  178. for (HUDType x : HUDType.values()) {
  179. if (x.toString().equalsIgnoreCase(temp)) {
  180. defaulthud = x;
  181. }
  182. }
  183. enableAbilityMessages = config.getBoolean("Abilities.Messages", true);
  184. enableAbilities = config.getBoolean("Abilities.Enabled", true);
  185. donateMessage = config.getBoolean("Commands.mcmmo.Donate_Message", true);
  186. xpGainsMobSpawners = config.getBoolean("Experience.Gains.Mobspawners.Enabled", false);
  187. bonesConsumedByCOTW = config.getInt("Skills.Taming.Call_Of_The_Wild.Bones_Required", 10);
  188. fishConsumedByCOTW = config.getInt("Skills.Taming.Call_Of_The_Wild.Fish_Required", 10);
  189. xpbar = config.getBoolean("Spout.XP.Bar.Enabled", true);
  190. xpicon = config.getBoolean("Spout.XP.Icon.Enabled", true);
  191. xpbar_x = config.getInt("Spout.XP.Bar.X_POS", 95);
  192. xpbar_y = config.getInt("Spout.XP.Bar.Y_POS", 6);
  193. xpicon_x = config.getInt("Spout.XP.Icon.X_POS", 78);
  194. xpicon_y = config.getInt("Spout.XP.Icon.Y_POS", 2);
  195. showFaces = config.getBoolean("Spout.Party.HUD.Show_Faces", true);
  196. showDisplayName = config.getBoolean("Spout.Party.HUD.Show_Display_Name", false);
  197. partybar = config.getBoolean("Spout.Party.HUD.Enabled", true);
  198. acrobatics_r = config.getDouble("Spout.HUD.Retro.Colors.Acrobatics.RED", 0.3);
  199. acrobatics_g = config.getDouble("Spout.HUD.Retro.Colors.Acrobatics.GREEN", 0.3);
  200. acrobatics_b = config.getDouble("Spout.HUD.Retro.Colors.Acrobatics.BLUE", 0.75);
  201. archery_r = config.getDouble("Spout.HUD.Retro.Colors.Archery.RED", 0.3);
  202. archery_g = config.getDouble("Spout.HUD.Retro.Colors.Archery.GREEN", 0.3);
  203. archery_b = config.getDouble("Spout.HUD.Retro.Colors.Archery.BLUE", 0.75);
  204. axes_r = config.getDouble("Spout.HUD.Retro.Colors.Axes.RED", 0.3);
  205. axes_g = config.getDouble("Spout.HUD.Retro.Colors.Axes.GREEN", 0.3);
  206. axes_b = config.getDouble("Spout.HUD.Retro.Colors.Axes.BLUE", 0.75);
  207. excavation_r = config.getDouble("Spout.HUD.Retro.Colors.Excavation.RED", 0.3);
  208. excavation_g = config.getDouble("Spout.HUD.Retro.Colors.Excavation.GREEN", 0.3);
  209. excavation_b = config.getDouble("Spout.HUD.Retro.Colors.Excavation.BLUE", 0.75);
  210. herbalism_r = config.getDouble("Spout.HUD.Retro.Colors.Herbalism.RED", 0.3);
  211. herbalism_g = config.getDouble("Spout.HUD.Retro.Colors.Herbalism.GREEN", 0.3);
  212. herbalism_b = config.getDouble("Spout.HUD.Retro.Colors.Herbalism.BLUE", 0.75);
  213. mining_r = config.getDouble("Spout.HUD.Retro.Colors.Mining.RED", 0.3);
  214. mining_g = config.getDouble("Spout.HUD.Retro.Colors.Mining.GREEN", 0.3);
  215. mining_b = config.getDouble("Spout.HUD.Retro.Colors.Mining.BLUE", 0.75);
  216. repair_r = config.getDouble("Spout.HUD.Retro.Colors.Repair.RED", 0.3);
  217. repair_g = config.getDouble("Spout.HUD.Retro.Colors.Repair.GREEN", 0.3);
  218. repair_b = config.getDouble("Spout.HUD.Retro.Colors.Repair.BLUE", 0.75);
  219. swords_r = config.getDouble("Spout.HUD.Retro.Colors.Swords.RED", 0.3);
  220. swords_g = config.getDouble("Spout.HUD.Retro.Colors.Swords.GREEN", 0.3);
  221. swords_b = config.getDouble("Spout.HUD.Retro.Colors.Swords.BLUE", 0.75);
  222. taming_r = config.getDouble("Spout.HUD.Retro.Colors.Taming.RED", 0.3);
  223. taming_g = config.getDouble("Spout.HUD.Retro.Colors.Taming.GREEN", 0.3);
  224. taming_b = config.getDouble("Spout.HUD.Retro.Colors.Taming.BLUE", 0.75);
  225. unarmed_r = config.getDouble("Spout.HUD.Retro.Colors.Unarmed.RED", 0.3);
  226. unarmed_g = config.getDouble("Spout.HUD.Retro.Colors.Unarmed.GREEN", 0.3);
  227. unarmed_b = config.getDouble("Spout.HUD.Retro.Colors.Unarmed.BLUE", 0.75);
  228. woodcutting_r = config.getDouble("Spout.HUD.Retro.Colors.Woodcutting.RED", 0.3);
  229. woodcutting_g = config.getDouble("Spout.HUD.Retro.Colors.Woodcutting.GREEN", 0.3);
  230. woodcutting_b = config.getDouble("Spout.HUD.Retro.Colors.Woodcutting.BLUE", 0.75);
  231. fishing_r = config.getDouble("Spout.HUD.Retro.Colors.Fishing.RED", 0.3);
  232. fishing_g = config.getDouble("Spout.HUD.Retro.Colors.Fishing.GREEN", 0.3);
  233. fishing_b = config.getDouble("Spout.HUD.Retro.Colors.Fishing.BLUE", 0.75);
  234. xpborder_r = config.getDouble("Spout.HUD.Retro.Colors.Border.RED", 0.0);
  235. xpborder_g = config.getDouble("Spout.HUD.Retro.Colors.Border.GREEN", 0.0);
  236. xpborder_b = config.getDouble("Spout.HUD.Retro.Colors.Border.BLUE", 0.0);
  237. xpbackground_r = config.getDouble("Spout.HUD.Retro.Colors.Background.RED", 0.75);
  238. xpbackground_g = config.getDouble("Spout.HUD.Retro.Colors.Background.GREEN", 0.75);
  239. xpbackground_b = config.getDouble("Spout.HUD.Retro.Colors.Background.BLUE", 0.75);
  240. mbase = config.getInt("Experience.Excavation.Base", 40);
  241. msugar = config.getInt("Experience.Herbalism.Sugar_Cane", 30);
  242. mwheat = config.getInt("Experience.Herbalism.Wheat", 50);
  243. mcactus = config.getInt("Experience.Herbalism.Cactus", 30);
  244. mpumpkin = config.getInt("Experience.Herbalism.Pumpkin", 20);
  245. mflower = config.getInt("Experience.Herbalism.Flowers", 100);
  246. mmushroom = config.getInt("Experience.Herbalism.Mushrooms", 150);
  247. mmelon = config.getInt("Experience.Herbalism.Melon", 20);
  248. mnetherwart = config.getInt("Experience.Herbalism.Nether_Wart", 50);
  249. mlilypad = config.getInt("Experience.Herbalism.Lily_Pads", 100);
  250. mvines = config.getInt("Experience.Herbalism.Vines", 10);
  251. herbalismHungerBonus = config.getBoolean("Skills.Herbalism.Hunger_Bonus", true);
  252. wheatRegrowth = config.getBoolean("Skills.Herbalism.Instant_Wheat_Regrowth", true);
  253. moak = config.getInt("Experience.Woodcutting.Oak", 70);
  254. mbirch = config.getInt("Experience.Woodcutting.Birch", 90);
  255. mspruce = config.getInt("Experience.Woodcutting.Spruce", 80);
  256. mjungle = config.getInt("Experience.Woodcutting.Jungle", 100);
  257. mgold = config.getInt("Experience.Mining.Gold", 250);
  258. mdiamond = config.getInt("Experience.Mining.Diamond", 750);
  259. miron = config.getInt("Experience.Mining.Iron", 250);
  260. mredstone = config.getInt("Experience.Mining.Redstone", 150);
  261. mlapis = config.getInt("Experience.Mining.Lapis", 400);
  262. mobsidian = config.getInt("Experience.Mining.Obsidian", 150);
  263. mnetherrack = config.getInt("Experience.Mining.Netherrack", 30);
  264. mglowstone = config.getInt("Experience.Mining.Glowstone", 30);
  265. mcoal = config.getInt("Experience.Mining.Coal", 100);
  266. mstone = config.getInt("Experience.Mining.Stone", 30);
  267. msandstone = config.getInt("Experience.Mining.Sandstone", 30);
  268. mendstone = config.getInt("Experience.Mining.End_Stone", 150);
  269. mmossstone = config.getInt("Experience.Mining.Moss_Stone", 30);
  270. mtameWolf = config.getInt("Experience.Taming.Animal_Taming.Wolf", 250);
  271. mtameOcelot = config.getInt("Experience.Taming.Animal_Taming.Ocelot", 500);
  272. mfishing = config.getInt("Experience.Fishing.Base", 800);
  273. enableOnlyActivateWhenSneaking = config.getBoolean("Abilities.Activation.Only_Activate_When_Sneaking", false);
  274. greenTerraCooldown = config.getInt("Abilities.Cooldowns.Green_Terra", 240);
  275. superBreakerCooldown = config.getInt("Abilities.Cooldowns.Super_Breaker", 240);
  276. gigaDrillBreakerCooldown = config.getInt("Abilities.Cooldowns.Giga_Drill_Breaker", 240);
  277. treeFellerThreshold = config.getInt("Abilities.Limits.Tree_Feller_Threshold", 500);
  278. treeFellerCooldown = config.getInt("Abilities.Cooldowns.Tree_Feller", 240);
  279. berserkCooldown = config.getInt("Abilities.Cooldowns.Berserk", 240);
  280. serratedStrikeCooldown = config.getInt("Abilities.Cooldowns.Serrated_Strikes", 240);
  281. skullSplitterCooldown = config.getInt("Abilities.Cooldowns.Skull_Splitter", 240);
  282. blastMiningCooldown = config.getInt("Abilities.Cooldowns.Blast_Mining", 60);
  283. MySQLserverName = config.getString("MySQL.Server.Address", "localhost");
  284. if (config.getString("MySQL.Database.User_Password", null) != null) {
  285. MySQLdbPass = config.getString("MySQL.Database.User_Password", null);
  286. }
  287. else {
  288. MySQLdbPass = "";
  289. }
  290. MySQLdbName = config.getString("MySQL.Database.Name", "DatabaseName");
  291. MySQLuserName = config.getString("MySQL.Database.User_Name", "UserName");
  292. MySQLtablePrefix = config.getString("MySQL.Database.TablePrefix", "mcmmo_");
  293. MySQLport = config.getInt("MySQL.Server.Port", 3306);
  294. useMySQL = config.getBoolean("MySQL.Enabled", false);
  295. locale = config.getString("General.Locale", "en_us");
  296. enableMotd = config.getBoolean("General.MOTD_Enabled", true);
  297. saveInterval = config.getInt("General.Save_Interval", 10);
  298. statsTracking = config.getBoolean("General.Stats_Tracking", true);
  299. eventCallback = config.getBoolean("General.Event_Callback", true);
  300. perLevelTools = config.getBoolean("General.Per_Level_Tools", false);
  301. enableCobbleToMossy = config.getBoolean("Skills.Herbalism.Green_Thumb.Cobble_To_Mossy", true);
  302. enableSmoothToMossy = config.getBoolean("Skills.Herbalism.Green_Thumb.SmoothBrick_To_MossyBrick", true);
  303. enableDirtToGrass = config.getBoolean("Skills.Herbalism.Green_Thumb.Dirt_To_Grass", true);
  304. xpGainMultiplier = config.getInt("Experience.Gains.Multiplier.Global", 1);
  305. toolsLoseDurabilityFromAbilities = config.getBoolean("Abilities.Tools.Durability_Loss_Enabled", true);
  306. abilityDurabilityLoss = config.getInt("Abilities.Tools.Durability_Loss", 2);
  307. feathersConsumedByChimaeraWing = config.getInt("Items.Chimaera_Wing.Feather_Cost", 10);
  308. chimaeraId = config.getInt("Items.Chimaera_Wing.Item_ID", 288);
  309. chimaeraWingEnable = config.getBoolean("Items.Chimaera_Wing.Enabled", true);
  310. dAxe = config.getInt("Items.Diamond.Axe", 750);
  311. dHoe = config.getInt("Items.Diamond.Hoe", 750);
  312. dShovel = config.getInt("Items.Diamond.Shovel", 750);
  313. dSword = config.getInt("Items.Diamond.Sword", 750);
  314. dPickaxe = config.getInt("Items.Diamond.Pickaxe", 750);
  315. gAxe = config.getInt("Items.Gold.Axe", 500);
  316. gHoe = config.getInt("Items.Gold.Hoe", 500);
  317. gShovel = config.getInt("Items.Gold.Shovel", 500);
  318. gSword = config.getInt("Items.Gold.Sword", 500);
  319. gPickaxe = config.getInt("Items.Gold.Pickaxe", 500);
  320. iAxe = config.getInt("Items.Iron.Axe", 250);
  321. iHoe = config.getInt("Items.Iron.Hoe", 250);
  322. iShovel = config.getInt("Items.Iron.Shovel", 250);
  323. iSword = config.getInt("Items.Iron.Sword", 250);
  324. iPickaxe = config.getInt("Items.Iron.Pickaxe", 250);
  325. sAxe = config.getInt("Items.Stone.Axe", 0);
  326. sHoe = config.getInt("Items.Stone.Hoe", 0);
  327. sShovel = config.getInt("Items.Stone.Shovel", 0);
  328. sSword = config.getInt("Items.Stone.Sword", 0);
  329. sPickaxe = config.getInt("Items.Stone.Pickaxe", 0);
  330. pvpxp = config.getBoolean("Experience.PVP.Rewards", true);
  331. pvpxprewardmodifier = config.getDouble("Experience.Gains.Multiplier.PVP", 1.0);
  332. miningrequirespickaxe = config.getBoolean("Skills.Mining.Requires_Pickaxe", true);
  333. excavationRequiresShovel = config.getBoolean("Skills.Excavation.Requires_Shovel", true);
  334. woodcuttingrequiresaxe = config.getBoolean("Skills.Woodcutting.Requires_Axe", true);
  335. repairArmor = config.getBoolean("Skills.Repair.Can_Repair_Armor", true);
  336. repairTools = config.getBoolean("Skills.Repair.Can_Repair_Tools", true);
  337. repairdiamondlevel = config.getInt("Skills.Repair.Diamond.Level_Required", 50);
  338. repairIronLevel = config.getInt("Skills.Repair.Iron.Level_Required", 0);
  339. repairGoldLevel = config.getInt("Skills.Repair.Gold.Level_Required", 0);
  340. repairStoneLevel = config.getInt("Skills.Repair.Stone.Level_Required", 0);
  341. tamingxpmodifier = config.getDouble("Experience.Formula.Multiplier.Taming", 1.0);
  342. miningxpmodifier = config.getDouble("Experience.Formula.Multiplier.Mining", 1.0);
  343. repairxpmodifier = config.getDouble("Experience.Formula.Multiplier.Repair", 1.0);
  344. woodcuttingxpmodifier = config.getDouble("Experience.Formula.Multiplier.Woodcutting", 1.0);
  345. unarmedxpmodifier = config.getDouble("Experience.Formula.Multiplier.Unarmed", 1.0);
  346. herbalismxpmodifier = config.getDouble("Experience.Formula.Multiplier.Herbalism", 1.0);
  347. excavationxpmodifier = config.getDouble("Experience.Formula.Multiplier.Excavation", 1.0);
  348. archeryxpmodifier = config.getDouble("Experience.Formula.Multiplier.Archery", 1.0);
  349. swordsxpmodifier = config.getDouble("Experience.Formula.Multiplier.Swords", 1.0);
  350. axesxpmodifier = config.getDouble("Experience.Formula.Multiplier.Axes", 1.0);
  351. acrobaticsxpmodifier = config.getDouble("Experience.Formula.Multiplier.Acrobatics", 1.0);
  352. fishingxpmodifier = config.getDouble("Experience.Forumla.Multiplier.Fishing", 1.0);
  353. anvilmessages = config.getBoolean("Skills.Repair.Anvil_Messages", true);
  354. anvilID = config.getInt("Skills.Repair.Anvil_ID", 42);
  355. rGold = config.getInt("Skills.Repair.Gold.ID", 266);
  356. rStone = config.getInt("Skills.Repair.Stone.ID", 4);
  357. rWood = config.getInt("Skills.Repair.Wood.ID", 5);
  358. rDiamond = config.getInt("Skills.Repair.Diamond.ID", 264);
  359. rIron = config.getInt("Skills.Repair.Iron.ID", 265);
  360. rString = config.getInt("Skills.Repair.String.ID", 287);
  361. rLeather = config.getInt("Skills.Repair.Leather.ID", 334);
  362. levelCapAcrobatics = config.getInt("Skills.Acrobatics.Level_Cap", 0);
  363. levelCapArchery = config.getInt("Skills.Archery.Level_Cap", 0);
  364. levelCapAxes = config.getInt("Skills.Axes.Level_Cap", 0);
  365. levelCapExcavation = config.getInt("Skills.Excavation.Level_Cap", 0);
  366. levelCapFishing = config.getInt("Skills.Fishing.Level_Cap", 0);
  367. levelCapHerbalism = config.getInt("Skills.Herbalism.Level_Cap", 0);
  368. levelCapMining = config.getInt("Skills.Mining.Level_Cap", 0);
  369. levelCapRepair = config.getInt("Skills.Repair.Level_Cap", 0);
  370. levelCapSwords = config.getInt("Skills.Swords.Level_Cap", 0);
  371. levelCapTaming = config.getInt("Skills.Taming.Level_Cap", 0);
  372. levelCapUnarmed = config.getInt("Skills.Unarmed.Level_Cap", 0);
  373. levelCapWoodcutting = config.getInt("Skills.Woodcutting.Level_Cap", 0);
  374. mayDowngradeEnchants = config.getBoolean("Arcane_Forging.Downgrades.Enabled", true);
  375. downgradeRank1 = config.getInt("Arcane_Forging.Downgrades.Chance.Rank_1", 75);
  376. downgradeRank2 = config.getInt("Arcane_Forging.Downgrades.Chance.Rank_2", 50);
  377. downgradeRank3 = config.getInt("Arcane_Forging.Downgrades.Chance.Rank_3", 25);
  378. downgradeRank4 = config.getInt("Arcane_Forging.Downgrades.Chance.Rank_4", 15);
  379. mayLoseEnchants = config.getBoolean("Arcane_Forging.May_Lose_Enchants", true);
  380. keepEnchantsRank1 = config.getInt("Arcane_Forging.Keep_Enchants.Chance.Rank_1", 10);
  381. keepEnchantsRank2 = config.getInt("Arcane_Forging.Keep_Enchants.Chance.Rank_2", 20);
  382. keepEnchantsRank3 = config.getInt("Arcane_Forging.Keep_Enchants.Chance.Rank_3", 30);
  383. keepEnchantsRank4 = config.getInt("Arcane_Forging.Keep_Enchants.Chance.Rank_4", 40);
  384. arcaneRank1 = config.getInt("Arcane_Forging.Rank_Levels.Rank_1", 100);
  385. arcaneRank2 = config.getInt("Arcane_Forging.Rank_Levels.Rank_2", 250);
  386. arcaneRank3 = config.getInt("Arcane_Forging.Rank_Levels.Rank_3", 500);
  387. arcaneRank4 = config.getInt("Arcane_Forging.Rank_Levels.Rank_4", 750);
  388. fishingDrops = config.getBoolean("Fishing.Drops_Enabled", true);
  389. fishingTier1 = config.getInt("Fishing.Tier_Levels.Tier1", 0);
  390. fishingTier2 = config.getInt("Fishing.Tier_Levels.Tier2", 200);
  391. fishingTier3 = config.getInt("Fishing.Tier_Levels.Tier3", 400);
  392. fishingTier4 = config.getInt("Fishing.Tier_Levels.Tier4", 600);
  393. fishingTier5 = config.getInt("Fishing.Tier_Levels.Tier5", 800);
  394. xplockEnable = config.getBoolean("Commands.xplock.Enabled", true);
  395. xprateEnable = config.getBoolean("Commands.xprate.Enabled", true);
  396. mctopEnable = config.getBoolean("Commands.mctop.Enabled", true);
  397. addxpEnable = config.getBoolean("Commands.addxp.Enabled", true);
  398. addlevelsEnable = config.getBoolean("Commands.addlevels.Enabled", true);
  399. mcabilityEnable = config.getBoolean("Commands.mcability.Enabled", true);
  400. mcrefreshEnable = config.getBoolean("Commands.mcrefresh.Enabled", true);
  401. mcmmoEnable = config.getBoolean("Commands.mcmmo.Enabled", true);
  402. mccEnable = config.getBoolean("Commands.mcc.Enabled", true);
  403. mcgodEnable = config.getBoolean("Commands.mcgod.Enabled", true);
  404. mcstatsEnable = config.getBoolean("Commands.mcstats.Enabled", true);
  405. mmoeditEnable = config.getBoolean("Commands.mmoedit.Enabled", true);
  406. mcremoveEnable = config.getBoolean("Commands.mcremove.Enable", true);
  407. ptpEnable = config.getBoolean("Commands.ptp.Enabled", true);
  408. partyEnable = config.getBoolean("Commands.party.Enabled", true);
  409. inspectEnable = config.getBoolean("Commands.inspect.Enabled", true);
  410. inviteEnable = config.getBoolean("Commands.invite.Enabled", true);
  411. acceptEnable = config.getBoolean("Commands.accept.Enabled", true);
  412. aEnable = config.getBoolean("Commands.a.Enabled", true);
  413. pEnable = config.getBoolean("Commands.p.Enabled", true);
  414. aDisplayNames = config.getBoolean("Commands.a.Display_Names", true);
  415. pDisplayNames = config.getBoolean("Commands.p.Display_Names", true);
  416. ptpCommandCooldown = config.getInt("Commands.ptp.Cooldown", 30);
  417. animalXP = config.getDouble("Experience.Combat.Multiplier.Animals", 1.0);
  418. creeperXP = config.getDouble("Experience.Combat.Multiplier.Creeper", 4.0);
  419. skeletonXP = config.getDouble("Experience.Combat.Multiplier.Skeleton", 2.0);
  420. spiderXP = config.getDouble("Experience.Combat.Multiplier.Spider", 3.0);
  421. ghastXP = config.getDouble("Experience.Combat.Multiplier.Ghast", 3.0);
  422. slimeXP = config.getDouble("Experience.Combat.Multiplier.Slime", 2.0);
  423. zombieXP = config.getDouble("Experience.Combat.Multiplier.Zombie", 2.0);
  424. pigzombieXP = config.getDouble("Experience.Combat.Multiplier.Pig_Zombie", 3.0);
  425. endermanXP = config.getDouble("Experience.Combat.Multiplier.Enderman", 2.0);
  426. cavespiderXP = config.getDouble("Experience.Combat.Multiplier.Cave_Spider", 3.0);
  427. silverfishXP = config.getDouble("Experience.Combat.Multiplier.Silverfish", 3.0);
  428. blazeXP = config.getDouble("Experience.Combat.Multiplier.Blaze", 3.0);
  429. magmacubeXP = config.getDouble("Experience.Combat.Multiplier.Magma_Cube", 2.0);
  430. enderdragonXP = config.getDouble("Experience.Combat.Multiplier.Ender_Dragon", 8.0);
  431. detonatorID = config.getInt("Skills.Mining.Detonator_ID", 259);
  432. }
  433. }