mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 08:55:26 +01:00
Config overhaul part 6
This commit is contained in:
parent
8d7afe4f46
commit
05724ae64f
@ -46,8 +46,8 @@ public class TamingCommand implements CommandExecutor {
|
|||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("Taming.Effect.10"), mcLocale.getString("Taming.Effect.11") }));
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("Taming.Effect.10"), mcLocale.getString("Taming.Effect.11") }));
|
||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("Taming.Effect.12"), mcLocale.getString("Taming.Effect.13") }));
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("Taming.Effect.12"), mcLocale.getString("Taming.Effect.13") }));
|
||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("Taming.Effect.16"), mcLocale.getString("Taming.Effect.17") }));
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("Taming.Effect.16"), mcLocale.getString("Taming.Effect.17") }));
|
||||||
player.sendMessage(mcLocale.getString("Taming.Effect.14", new Object[] { Config.fishConsumedByCOTW }));
|
player.sendMessage(mcLocale.getString("Taming.Effect.14", new Object[] { Config.getTamingCOTWOcelotCost() }));
|
||||||
player.sendMessage(mcLocale.getString("Taming.Effect.15", new Object[] { Config.bonesConsumedByCOTW }));
|
player.sendMessage(mcLocale.getString("Taming.Effect.15", new Object[] { Config.getTamingCOTWWolfCost() }));
|
||||||
|
|
||||||
player.sendMessage(mcLocale.getString("Skills.Header", new Object[] { mcLocale.getString("Commands.Stats.Self") }));
|
player.sendMessage(mcLocale.getString("Skills.Header", new Object[] { mcLocale.getString("Commands.Stats.Self") }));
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ public class Config extends ConfigLoader{
|
|||||||
serratedStrikeCooldown, skullSplitterCooldown;
|
serratedStrikeCooldown, skullSplitterCooldown;
|
||||||
|
|
||||||
/* Thresholds */
|
/* Thresholds */
|
||||||
public static int treeFellerThreshold;
|
public static int getTreeFellerThreshold() { return config.getInt("Abilities.Limits.Tree_Feller_Threshold", 500); }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SKILL SETTINGS
|
* SKILL SETTINGS
|
||||||
@ -128,7 +128,7 @@ public class Config extends ConfigLoader{
|
|||||||
public static int getMiningXPEndStone() { return config.getInt("Experience.Mining.End_Stone", 150); }
|
public static int getMiningXPEndStone() { return config.getInt("Experience.Mining.End_Stone", 150); }
|
||||||
public static int getMiningXPMossyStone() { return config.getInt("Experience.Mining.Moss_Stone", 30); }
|
public static int getMiningXPMossyStone() { return config.getInt("Experience.Mining.Moss_Stone", 30); }
|
||||||
|
|
||||||
public static int detonatorID;
|
public static int getDetonatorItemID() { return config.getInt("Skills.Mining.Detonator_ID", 259); }
|
||||||
|
|
||||||
/* Repair */
|
/* Repair */
|
||||||
public static Boolean repairArmor, repairTools;
|
public static Boolean repairArmor, repairTools;
|
||||||
@ -138,11 +138,16 @@ public class Config extends ConfigLoader{
|
|||||||
public static int repairStoneLevel, repairIronLevel, repairGoldLevel, repairDiamondLevel, repairStringLevel;
|
public static int repairStoneLevel, repairIronLevel, repairGoldLevel, repairDiamondLevel, repairStringLevel;
|
||||||
|
|
||||||
/* Taming */
|
/* Taming */
|
||||||
public static int mtameWolf, mtameOcelot;
|
public static int getTamingXPWolf() { return config.getInt("Experience.Taming.Animal_Taming.Wolf", 250); }
|
||||||
public static int bonesConsumedByCOTW, fishConsumedByCOTW;
|
public static int getTamingXPOcelot() { return config.getInt("Experience.Taming.Animal_Taming.Ocelot", 500); }
|
||||||
|
public static int getTamingCOTWWolfCost() { return config.getInt("Skills.Taming.Call_Of_The_Wild.Bones_Required", 10); }
|
||||||
|
public static int getTamingCOTWOcelotCost() { return config.getInt("Skills.Taming.Call_Of_The_Wild.Fish_Required", 10); }
|
||||||
|
|
||||||
/* Woodcutting */
|
/* Woodcutting */
|
||||||
public static int moak, mbirch, mspruce, mjungle;
|
public static int getWoodcuttingXPOak() { return config.getInt("Experience.Woodcutting.Oak", 70); }
|
||||||
|
public static int getWoodcuttingXPBirch() { return config.getInt("Experience.Woodcutting.Birch", 90); }
|
||||||
|
public static int getWoodcuttingXPSpruce() { return config.getInt("Experience.Woodcutting.Spruce", 80); }
|
||||||
|
public static int getWoodcuttingXPJungle() { return config.getInt("Experience.Woodcutting.Jungle", 100); }
|
||||||
|
|
||||||
/* Arcane Forging */
|
/* Arcane Forging */
|
||||||
public static Boolean mayDowngradeEnchants, mayLoseEnchants;
|
public static Boolean mayDowngradeEnchants, mayLoseEnchants;
|
||||||
@ -306,10 +311,7 @@ public class Config extends ConfigLoader{
|
|||||||
|
|
||||||
donateMessage = config.getBoolean("Commands.mcmmo.Donate_Message", true);
|
donateMessage = config.getBoolean("Commands.mcmmo.Donate_Message", true);
|
||||||
xpGainsMobSpawners = config.getBoolean("Experience.Gains.Mobspawners.Enabled", false);
|
xpGainsMobSpawners = config.getBoolean("Experience.Gains.Mobspawners.Enabled", false);
|
||||||
|
|
||||||
bonesConsumedByCOTW = config.getInt("Skills.Taming.Call_Of_The_Wild.Bones_Required", 10);
|
|
||||||
fishConsumedByCOTW = config.getInt("Skills.Taming.Call_Of_The_Wild.Fish_Required", 10);
|
|
||||||
|
|
||||||
xpbar = config.getBoolean("Spout.XP.Bar.Enabled", true);
|
xpbar = config.getBoolean("Spout.XP.Bar.Enabled", true);
|
||||||
xpicon = config.getBoolean("Spout.XP.Icon.Enabled", true);
|
xpicon = config.getBoolean("Spout.XP.Icon.Enabled", true);
|
||||||
xpbar_x = config.getInt("Spout.XP.Bar.X_POS", 95);
|
xpbar_x = config.getInt("Spout.XP.Bar.X_POS", 95);
|
||||||
@ -321,15 +323,9 @@ public class Config extends ConfigLoader{
|
|||||||
showDisplayName = config.getBoolean("Spout.Party.HUD.Show_Display_Name", false);
|
showDisplayName = config.getBoolean("Spout.Party.HUD.Show_Display_Name", false);
|
||||||
partybar = config.getBoolean("Spout.Party.HUD.Enabled", true);
|
partybar = config.getBoolean("Spout.Party.HUD.Enabled", true);
|
||||||
|
|
||||||
moak = config.getInt("Experience.Woodcutting.Oak", 70);
|
|
||||||
mbirch = config.getInt("Experience.Woodcutting.Birch", 90);
|
|
||||||
mspruce = config.getInt("Experience.Woodcutting.Spruce", 80);
|
|
||||||
mjungle = config.getInt("Experience.Woodcutting.Jungle", 100);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
mtameWolf = config.getInt("Experience.Taming.Animal_Taming.Wolf", 250);
|
|
||||||
mtameOcelot = config.getInt("Experience.Taming.Animal_Taming.Ocelot", 500);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -338,7 +334,6 @@ public class Config extends ConfigLoader{
|
|||||||
greenTerraCooldown = config.getInt("Abilities.Cooldowns.Green_Terra", 240);
|
greenTerraCooldown = config.getInt("Abilities.Cooldowns.Green_Terra", 240);
|
||||||
superBreakerCooldown = config.getInt("Abilities.Cooldowns.Super_Breaker", 240);
|
superBreakerCooldown = config.getInt("Abilities.Cooldowns.Super_Breaker", 240);
|
||||||
gigaDrillBreakerCooldown = config.getInt("Abilities.Cooldowns.Giga_Drill_Breaker", 240);
|
gigaDrillBreakerCooldown = config.getInt("Abilities.Cooldowns.Giga_Drill_Breaker", 240);
|
||||||
treeFellerThreshold = config.getInt("Abilities.Limits.Tree_Feller_Threshold", 500);
|
|
||||||
treeFellerCooldown = config.getInt("Abilities.Cooldowns.Tree_Feller", 240);
|
treeFellerCooldown = config.getInt("Abilities.Cooldowns.Tree_Feller", 240);
|
||||||
berserkCooldown = config.getInt("Abilities.Cooldowns.Berserk", 240);
|
berserkCooldown = config.getInt("Abilities.Cooldowns.Berserk", 240);
|
||||||
serratedStrikeCooldown = config.getInt("Abilities.Cooldowns.Serrated_Strikes", 240);
|
serratedStrikeCooldown = config.getInt("Abilities.Cooldowns.Serrated_Strikes", 240);
|
||||||
@ -403,7 +398,5 @@ public class Config extends ConfigLoader{
|
|||||||
arcaneRank4 = config.getInt("Arcane_Forging.Rank_Levels.Rank_4", 750);
|
arcaneRank4 = config.getInt("Arcane_Forging.Rank_Levels.Rank_4", 750);
|
||||||
|
|
||||||
ptpCommandCooldown = config.getInt("Commands.ptp.Cooldown", 30);
|
ptpCommandCooldown = config.getInt("Commands.ptp.Cooldown", 30);
|
||||||
|
|
||||||
detonatorID = config.getInt("Skills.Mining.Detonator_ID", 259);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -299,11 +299,11 @@ public class mcEntityListener implements Listener {
|
|||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case WOLF:
|
case WOLF:
|
||||||
xp = Config.mtameWolf;
|
xp = Config.getTamingXPWolf();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OCELOT:
|
case OCELOT:
|
||||||
xp = Config.mtameOcelot;
|
xp = Config.getTamingXPOcelot();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -235,7 +235,7 @@ public class mcPlayerListener implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* BLAST MINING CHECK */
|
/* BLAST MINING CHECK */
|
||||||
if (mcPermissions.getInstance().blastMining(player) && is.getTypeId() == Config.detonatorID) {
|
if (mcPermissions.getInstance().blastMining(player) && is.getTypeId() == Config.getDetonatorItemID()) {
|
||||||
BlastMining.remoteDetonation(player, plugin);
|
BlastMining.remoteDetonation(player, plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -258,7 +258,7 @@ public class mcPlayerListener implements Listener {
|
|||||||
Item.itemchecks(player);
|
Item.itemchecks(player);
|
||||||
|
|
||||||
/* BLAST MINING CHECK */
|
/* BLAST MINING CHECK */
|
||||||
if (mcPermissions.getInstance().blastMining(player) && is.getTypeId() == Config.detonatorID) {
|
if (mcPermissions.getInstance().blastMining(player) && is.getTypeId() == Config.getDetonatorItemID()) {
|
||||||
BlastMining.remoteDetonation(player, plugin);
|
BlastMining.remoteDetonation(player, plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,12 +214,12 @@ public class Taming {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case WOLF:
|
case WOLF:
|
||||||
summonItem = Material.BONE;
|
summonItem = Material.BONE;
|
||||||
summonAmount = Config.bonesConsumedByCOTW;
|
summonAmount = Config.getTamingCOTWWolfCost();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OCELOT:
|
case OCELOT:
|
||||||
summonItem = Material.RAW_FISH;
|
summonItem = Material.RAW_FISH;
|
||||||
summonAmount = Config.fishConsumedByCOTW;
|
summonAmount = Config.getTamingCOTWOcelotCost();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -53,7 +53,7 @@ public class WoodCutting {
|
|||||||
* @param PP The PlayerProfile of the player
|
* @param PP The PlayerProfile of the player
|
||||||
*/
|
*/
|
||||||
private static void removeBlocks(ArrayList<Block> toBeFelled, Player player, PlayerProfile PP) {
|
private static void removeBlocks(ArrayList<Block> toBeFelled, Player player, PlayerProfile PP) {
|
||||||
if (toBeFelled.size() >= Config.treeFellerThreshold) {
|
if (toBeFelled.size() >= Config.getTreeFellerThreshold()) {
|
||||||
player.sendMessage(mcLocale.getString("Woodcutting.Skills.TreeFellerThreshold"));
|
player.sendMessage(mcLocale.getString("Woodcutting.Skills.TreeFellerThreshold"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -116,19 +116,19 @@ public class WoodCutting {
|
|||||||
|
|
||||||
switch (species) {
|
switch (species) {
|
||||||
case GENERIC:
|
case GENERIC:
|
||||||
xp += Config.moak;
|
xp += Config.getWoodcuttingXPOak();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REDWOOD:
|
case REDWOOD:
|
||||||
xp += Config.mspruce;
|
xp += Config.getWoodcuttingXPSpruce();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BIRCH:
|
case BIRCH:
|
||||||
xp += Config.mbirch;
|
xp += Config.getWoodcuttingXPBirch();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case JUNGLE:
|
case JUNGLE:
|
||||||
xp += Config.mjungle / 4; //Nerf XP from Jungle Trees when using Tree Feller
|
xp += Config.getWoodcuttingXPJungle() / 4; //Nerf XP from Jungle Trees when using Tree Feller
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -187,7 +187,7 @@ public class WoodCutting {
|
|||||||
private static void processTreeFelling(Block currentBlock, ArrayList<Block> toBeFelled) {
|
private static void processTreeFelling(Block currentBlock, ArrayList<Block> toBeFelled) {
|
||||||
Material type = currentBlock.getType();
|
Material type = currentBlock.getType();
|
||||||
|
|
||||||
if(toBeFelled.size() >= Config.treeFellerThreshold) {
|
if(toBeFelled.size() >= Config.getTreeFellerThreshold()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -281,19 +281,19 @@ public class WoodCutting {
|
|||||||
|
|
||||||
switch (species) {
|
switch (species) {
|
||||||
case GENERIC:
|
case GENERIC:
|
||||||
xp += Config.moak;
|
xp += Config.getWoodcuttingXPOak();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REDWOOD:
|
case REDWOOD:
|
||||||
xp += Config.mspruce;
|
xp += Config.getWoodcuttingXPSpruce();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BIRCH:
|
case BIRCH:
|
||||||
xp += Config.mbirch;
|
xp += Config.getWoodcuttingXPBirch();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case JUNGLE:
|
case JUNGLE:
|
||||||
xp += Config.mjungle;
|
xp += Config.getWoodcuttingXPJungle();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user