LoadProperties.java 26 KB

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