Edited mcMMO/com/gmail/nossr50/config/LoadProperties.java via GitHub

This commit is contained in:
solarcloud7 2011-04-29 12:04:41 -07:00
parent c4f2d6e0bc
commit ba3b8390db

View File

@ -4,8 +4,8 @@ import com.gmail.nossr50.mcMMO;
public class LoadProperties { 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 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 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; 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(){ public static void loadMain(){
String propertiesFile = mcMMO.maindirectory + "mcmmo.properties"; String propertiesFile = mcMMO.maindirectory + "mcmmo.properties";
@ -72,6 +72,19 @@ public class LoadProperties {
* ANVIL MESSAGES * ANVIL MESSAGES
*/ */
anvilmessages = properties.getBoolean("anvilMessages", true); 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 * EXCAVATION LOOT TOGGLES
*/ */