From ba3b8390db0290349ee40ba7629e2fda055f9b53 Mon Sep 17 00:00:00 2001 From: solarcloud7 Date: Fri, 29 Apr 2011 12:04:41 -0700 Subject: [PATCH] Edited mcMMO/com/gmail/nossr50/config/LoadProperties.java via GitHub --- .../gmail/nossr50/config/LoadProperties.java | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/mcMMO/com/gmail/nossr50/config/LoadProperties.java b/mcMMO/com/gmail/nossr50/config/LoadProperties.java index 0249f8d7d..f3687b92d 100644 --- a/mcMMO/com/gmail/nossr50/config/LoadProperties.java +++ b/mcMMO/com/gmail/nossr50/config/LoadProperties.java @@ -4,8 +4,8 @@ import com.gmail.nossr50.mcMMO; public class LoadProperties { public static Boolean useMySQL, cocoabeans, archeryFireRateLimit, mushrooms, toolsLoseDurabilityFromAbilities, pvpxp, miningrequirespickaxe, woodcuttingrequiresaxe, pvp, eggs, apples, myspawnclearsinventory, cake, music, diamond, glowstone, slowsand, sulphur, netherrack, bones, coal, clay, anvilmessages; - public static String MySQLtablePrefix, MySQLuserName, MySQLserverName, MySQLdbName, MySQLdbPass, mctop, addxp, mcability, mcmmo, mcc, mcrefresh, mcitem, mcgod, stats, mmoedit, ptp, party, myspawn, setmyspawn, whois, invite, accept, clearmyspawn; - public static int MySQLport, xpGainMultiplier, superBreakerCooldown, greenTerraCooldown, gigaDrillBreakerCooldown, treeFellerCooldown, berserkCooldown, serratedStrikeCooldown, skullSplitterCooldown, abilityDurabilityLoss, feathersConsumedByChimaeraWing, pvpxprewardmodifier, repairdiamondlevel, globalxpmodifier, tamingxpmodifier, miningxpmodifier, repairxpmodifier, woodcuttingxpmodifier, unarmedxpmodifier, herbalismxpmodifier, excavationxpmodifier, archeryxpmodifier, swordsxpmodifier, axesxpmodifier, acrobaticsxpmodifier; + public static String MySQLtablePrefix, MySQLuserName, MySQLserverName, MySQLdbName, MySQLdbPass, mctop, addxp, mcability, mcmmo, mcc, mcrefresh, mcitem, mcgod, stats, mmoedit, ptp, party, myspawn, setmyspawn, whois, invite, accept, clearmyspawn, nWood, nStone, nIron, nGold, nDiamond; + public static int MySQLport, xpGainMultiplier, superBreakerCooldown, greenTerraCooldown, gigaDrillBreakerCooldown, treeFellerCooldown, berserkCooldown, serratedStrikeCooldown, skullSplitterCooldown, abilityDurabilityLoss, feathersConsumedByChimaeraWing, pvpxprewardmodifier, repairdiamondlevel, globalxpmodifier, tamingxpmodifier, miningxpmodifier, repairxpmodifier, woodcuttingxpmodifier, unarmedxpmodifier, herbalismxpmodifier, excavationxpmodifier, archeryxpmodifier, swordsxpmodifier, axesxpmodifier, acrobaticsxpmodifier,rWood, rStone, rIron, rGold, rDiamond; public static void loadMain(){ String propertiesFile = mcMMO.maindirectory + "mcmmo.properties"; @@ -72,6 +72,19 @@ public class LoadProperties { * ANVIL MESSAGES */ anvilmessages = properties.getBoolean("anvilMessages", true); + /* + * ANVIL REPAIR (REQUIRED ITEM) AND (NAME OF ITEM) + */ + rGold = properties.getInteger("GoldRepairItemNumber", 318); + nGold = properties.getString("GoldItemRepairName", "Flint"); + rStone = properties.getInteger("CobblestoneRepairItemNumber", 4); + nStone = properties.getString("CobblestoneItemRepairName", "Cobblestone"); + rWood = properties.getInteger("WoodRepairItemNumber", 5); + nWood = properties.getString("WoodItemRepairName", "Wood Plank"); + rDiamond = properties.getInteger("DiamondRepairItemNumber", 45); + nDiamond = properties.getString("DiamondItemRepairName", "Brick"); + rIron = properties.getInteger("IronRepairItemNumber", 20); + nIron = properties.getString("IronItemRepairName", "Glass"); /* * EXCAVATION LOOT TOGGLES */