mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
Even more locale & command updates.
This commit is contained in:
parent
ef17da48c7
commit
48b3998443
@ -6,7 +6,6 @@ import org.bukkit.command.CommandSender;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.gmail.nossr50.Users;
|
import com.gmail.nossr50.Users;
|
||||||
import com.gmail.nossr50.mcPermissions;
|
|
||||||
import com.gmail.nossr50.commands.CommandHelper;
|
import com.gmail.nossr50.commands.CommandHelper;
|
||||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||||
import com.gmail.nossr50.datatypes.SkillType;
|
import com.gmail.nossr50.datatypes.SkillType;
|
||||||
@ -14,124 +13,126 @@ import com.gmail.nossr50.locale.mcLocale;
|
|||||||
import com.gmail.nossr50.util.Page;
|
import com.gmail.nossr50.util.Page;
|
||||||
|
|
||||||
public class MiningCommand implements CommandExecutor {
|
public class MiningCommand implements CommandExecutor {
|
||||||
@Override
|
private float skillValue;
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
private String doubleDropChance;
|
||||||
if (!(sender instanceof Player)) {
|
private String superBreakerLength;
|
||||||
sender.sendMessage("This command does not support console useage."); //TODO: Needs more locale.
|
private int blastMiningRank;
|
||||||
return true;
|
private int blastRadiusIncrease;
|
||||||
}
|
private int blastDamageDecrease;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
|
if (CommandHelper.noConsoleUsage(sender)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (CommandHelper.noCommandPermissions(sender, "mcmmo.skills.mining")) {
|
if (CommandHelper.noCommandPermissions(sender, "mcmmo.skills.mining")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Player player = (Player) sender;
|
|
||||||
PlayerProfile PP = Users.getProfile(player);
|
|
||||||
|
|
||||||
float skillvalue = (float) PP.getSkillLevel(SkillType.MINING);
|
Player player = (Player) sender;
|
||||||
String percentage = String.valueOf((skillvalue / 1000) * 100);
|
PlayerProfile PP = Users.getProfile(player);
|
||||||
int ticks = 2;
|
|
||||||
int x = PP.getSkillLevel(SkillType.MINING);
|
|
||||||
while (x >= 50) {
|
|
||||||
x -= 50;
|
|
||||||
ticks++;
|
|
||||||
}
|
|
||||||
|
|
||||||
int rank = 0;
|
|
||||||
int damage = 0;
|
|
||||||
int radius = 0;
|
|
||||||
if(PP.getSkillLevel(SkillType.MINING) >= 125 && PP.getSkillLevel(SkillType.MINING) < 250)
|
|
||||||
rank = 1;
|
|
||||||
if(PP.getSkillLevel(SkillType.MINING) >= 250 && PP.getSkillLevel(SkillType.MINING) < 375){
|
|
||||||
rank = 2;
|
|
||||||
radius = 1;
|
|
||||||
}
|
|
||||||
if(PP.getSkillLevel(SkillType.MINING) >= 375 && PP.getSkillLevel(SkillType.MINING) < 500){
|
|
||||||
rank = 3;
|
|
||||||
radius = 1;
|
|
||||||
}
|
|
||||||
if(PP.getSkillLevel(SkillType.MINING) >= 500 && PP.getSkillLevel(SkillType.MINING) < 625){
|
|
||||||
rank = 4;
|
|
||||||
damage = 25;
|
|
||||||
radius = 2;
|
|
||||||
}
|
|
||||||
if(PP.getSkillLevel(SkillType.MINING) >= 625 && PP.getSkillLevel(SkillType.MINING) < 750){
|
|
||||||
rank = 5;
|
|
||||||
damage = 25;
|
|
||||||
radius = 2;
|
|
||||||
}
|
|
||||||
if(PP.getSkillLevel(SkillType.MINING) >= 750 && PP.getSkillLevel(SkillType.MINING) < 875){
|
|
||||||
rank = 6;
|
|
||||||
damage = 50;
|
|
||||||
radius = 3;
|
|
||||||
}
|
|
||||||
if(PP.getSkillLevel(SkillType.MINING) >= 875 && PP.getSkillLevel(SkillType.MINING) < 1000){
|
|
||||||
rank = 7;
|
|
||||||
damage = 50;
|
|
||||||
radius = 3;
|
|
||||||
}
|
|
||||||
if(PP.getSkillLevel(SkillType.MINING) >= 1000){
|
|
||||||
rank = 8;
|
|
||||||
damage = 100;
|
|
||||||
radius = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
player.sendMessage(mcLocale.getString("Skills.Header", new Object[] { mcLocale.getString("Mining.SkillName") }));
|
|
||||||
player.sendMessage(mcLocale.getString("Commands.XPGain", new Object[] { mcLocale.getString("Commands.XPGain.Mining") }));
|
|
||||||
|
|
||||||
if (mcPermissions.getInstance().mining(player))
|
skillValue = (float) PP.getSkillLevel(SkillType.MINING);
|
||||||
player.sendMessage(mcLocale.getString("Effects.Level", new Object[] { PP.getSkillLevel(SkillType.MINING), PP.getSkillXpLevel(SkillType.MINING), PP.getXpToLevel(SkillType.MINING) }));
|
dataCalculations(skillValue);
|
||||||
|
|
||||||
player.sendMessage(mcLocale.getString("Skills.Header", new Object[] { mcLocale.getString("Effects.Effects") }));
|
player.sendMessage(mcLocale.getString("Skills.Header", new Object[] { mcLocale.getString("Mining.SkillName") }));
|
||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsMining1_0"), mcLocale.getString("m.EffectsMining1_1") }));
|
player.sendMessage(mcLocale.getString("Commands.XPGain", new Object[] { mcLocale.getString("Commands.XPGain.Mining") }));
|
||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsMining2_0"), mcLocale.getString("m.EffectsMining2_1") }));
|
player.sendMessage(mcLocale.getString("Effects.Level", new Object[] { PP.getSkillLevel(SkillType.MINING), PP.getSkillXpLevel(SkillType.MINING), PP.getXpToLevel(SkillType.MINING) }));
|
||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsMining3_0"), mcLocale.getString("m.EffectsMining3_1") }));
|
|
||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsMining4_0"), mcLocale.getString("m.EffectsMining4_1") }));
|
player.sendMessage(mcLocale.getString("Skills.Header", new Object[] { mcLocale.getString("Effects.Effects") }));
|
||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsMining5_0"), mcLocale.getString("m.EffectsMining5_1") }));
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("Mining.Effect.0"), mcLocale.getString("Mining.Effect.1") }));
|
||||||
player.sendMessage(mcLocale.getString("Skills.Header", new Object[] { mcLocale.getString("Commands.Stats.Self") }));
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("Mining.Effect.2"), mcLocale.getString("Mining.Effect.3") }));
|
||||||
player.sendMessage(mcLocale.getString("m.MiningDoubleDropChance", new Object[] { percentage }));
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("Mining.Effect.4"), mcLocale.getString("Mining.Effect.5") }));
|
||||||
player.sendMessage(mcLocale.getString("m.MiningSuperBreakerLength", new Object[] { ticks }));
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("Mining.Effect.6"), mcLocale.getString("Mining.Effect.7") }));
|
||||||
if (PP.getSkillLevel(SkillType.MINING) < 125)
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("Mining.Effect.8"), mcLocale.getString("Mining.Effect.9") }));
|
||||||
player.sendMessage(mcLocale.getString("Ability.Generic.Template.Lock", new Object[] { mcLocale.getString("m.AbilLockMining1") }));
|
|
||||||
else{
|
player.sendMessage(mcLocale.getString("Skills.Header", new Object[] { mcLocale.getString("Commands.Stats.Self") }));
|
||||||
switch (rank){
|
player.sendMessage(mcLocale.getString("Mining.Effect.DropChance", new Object[] { doubleDropChance }));
|
||||||
case 1:
|
player.sendMessage(mcLocale.getString("Mining.Ability.Length", new Object[] { superBreakerLength }));
|
||||||
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining1") }));
|
|
||||||
break;
|
if (PP.getSkillLevel(SkillType.MINING) < 125) {
|
||||||
case 2:
|
player.sendMessage(mcLocale.getString("Ability.Generic.Template.Lock", new Object[] { mcLocale.getString("Mining.Ability.Locked.0") }));
|
||||||
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining2") }));
|
}
|
||||||
break;
|
else {
|
||||||
case 3:
|
player.sendMessage(mcLocale.getString("Mining.Blast.Rank", new Object[] { blastMiningRank, mcLocale.getString("Mining.Blast.Effect." + (blastMiningRank - 1)) }));
|
||||||
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining3") }));
|
}
|
||||||
break;
|
|
||||||
case 4:
|
if (PP.getSkillLevel(SkillType.MINING) < 250) {
|
||||||
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining4") }));
|
player.sendMessage(mcLocale.getString("Ability.Generic.Template.Lock", new Object[] { mcLocale.getString("Mining.Ability.Locked.1") }));
|
||||||
break;
|
}
|
||||||
case 5:
|
else {
|
||||||
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining5") }));
|
player.sendMessage(mcLocale.getString("m.MiningBiggerBombs", new Object[] { blastRadiusIncrease }));
|
||||||
break;
|
}
|
||||||
case 6:
|
|
||||||
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining6") }));
|
if (PP.getSkillLevel(SkillType.MINING) < 500) {
|
||||||
break;
|
player.sendMessage(mcLocale.getString("Ability.Generic.Template.Lock", new Object[] { mcLocale.getString("Mining.Ability.Locked.2") }));
|
||||||
case 7:
|
}
|
||||||
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining7") }));
|
else {
|
||||||
break;
|
player.sendMessage(mcLocale.getString("m.MiningDemolitionsExpertDamageDecrease", new Object[] { blastDamageDecrease }));
|
||||||
case 8:
|
}
|
||||||
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining8") }));
|
|
||||||
break;
|
Page.grabGuidePageForSkill(SkillType.MINING, player, args);
|
||||||
}
|
|
||||||
}
|
return true;
|
||||||
if (PP.getSkillLevel(SkillType.MINING) < 250)
|
}
|
||||||
player.sendMessage(mcLocale.getString("Ability.Generic.Template.Lock", new Object[] { mcLocale.getString("m.AbilLockMining2") }));
|
|
||||||
else
|
private void dataCalculations(float skillValue) {
|
||||||
player.sendMessage(mcLocale.getString("m.MiningBiggerBombs", new Object[] { radius }));
|
superBreakerLength = String.valueOf(2 + ((int) skillValue / 50));
|
||||||
if (PP.getSkillLevel(SkillType.MINING) < 500)
|
|
||||||
player.sendMessage(mcLocale.getString("Ability.Generic.Template.Lock", new Object[] { mcLocale.getString("m.AbilLockMining3") }));
|
if (skillValue >= 1000) {
|
||||||
else
|
blastMiningRank = 8;
|
||||||
player.sendMessage(mcLocale.getString("m.MiningDemolitionsExpertDamageDecrease", new Object[] { damage }));
|
blastDamageDecrease = 100;
|
||||||
|
blastRadiusIncrease = 4;
|
||||||
Page.grabGuidePageForSkill(SkillType.MINING, player, args);
|
doubleDropChance = "100";
|
||||||
|
}
|
||||||
return true;
|
else if (skillValue >= 875) {
|
||||||
}
|
blastMiningRank = 7;
|
||||||
|
blastDamageDecrease = 50;
|
||||||
|
blastRadiusIncrease = 3;
|
||||||
|
doubleDropChance = String.valueOf(skillValue / 10);
|
||||||
|
}
|
||||||
|
else if (skillValue >= 750) {
|
||||||
|
blastMiningRank = 6;
|
||||||
|
blastDamageDecrease = 50;
|
||||||
|
blastRadiusIncrease = 3;
|
||||||
|
doubleDropChance = String.valueOf(skillValue / 10);
|
||||||
|
}
|
||||||
|
else if (skillValue >= 625) {
|
||||||
|
blastMiningRank = 5;
|
||||||
|
blastDamageDecrease = 25;
|
||||||
|
blastRadiusIncrease = 2;
|
||||||
|
doubleDropChance = String.valueOf(skillValue / 10);
|
||||||
|
}
|
||||||
|
else if (skillValue >= 500) {
|
||||||
|
blastMiningRank = 4;
|
||||||
|
blastDamageDecrease = 25;
|
||||||
|
blastRadiusIncrease = 2;
|
||||||
|
doubleDropChance = String.valueOf(skillValue / 10);
|
||||||
|
}
|
||||||
|
else if (skillValue >= 375) {
|
||||||
|
blastMiningRank = 3;
|
||||||
|
blastDamageDecrease = 0;
|
||||||
|
blastRadiusIncrease = 1;
|
||||||
|
doubleDropChance = String.valueOf(skillValue / 10);
|
||||||
|
}
|
||||||
|
else if (skillValue >= 250) {
|
||||||
|
blastMiningRank = 2;
|
||||||
|
blastDamageDecrease = 0;
|
||||||
|
blastRadiusIncrease = 1;
|
||||||
|
doubleDropChance = String.valueOf(skillValue / 10);
|
||||||
|
}
|
||||||
|
else if (skillValue >= 125) {
|
||||||
|
blastMiningRank = 1;
|
||||||
|
blastDamageDecrease = 0;
|
||||||
|
blastRadiusIncrease = 0;
|
||||||
|
doubleDropChance = String.valueOf(skillValue / 10);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
blastMiningRank = 0;
|
||||||
|
blastDamageDecrease = 0;
|
||||||
|
blastRadiusIncrease = 0;
|
||||||
|
doubleDropChance = String.valueOf(skillValue / 10);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,6 @@ import org.bukkit.command.CommandSender;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.gmail.nossr50.Users;
|
import com.gmail.nossr50.Users;
|
||||||
import com.gmail.nossr50.mcPermissions;
|
|
||||||
import com.gmail.nossr50.commands.CommandHelper;
|
import com.gmail.nossr50.commands.CommandHelper;
|
||||||
import com.gmail.nossr50.config.LoadProperties;
|
import com.gmail.nossr50.config.LoadProperties;
|
||||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||||
@ -16,44 +15,50 @@ import com.gmail.nossr50.skills.Repair;
|
|||||||
import com.gmail.nossr50.util.Page;
|
import com.gmail.nossr50.util.Page;
|
||||||
|
|
||||||
public class RepairCommand implements CommandExecutor {
|
public class RepairCommand implements CommandExecutor {
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
if (!(sender instanceof Player)) {
|
if (CommandHelper.noConsoleUsage(sender)) {
|
||||||
sender.sendMessage("This command does not support console useage."); //TODO: Needs more locale.
|
return true;
|
||||||
return true;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (CommandHelper.noCommandPermissions(sender, "mcmmo.skills.repair")) {
|
if (CommandHelper.noCommandPermissions(sender, "mcmmo.skills.repair")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Player player = (Player) sender;
|
|
||||||
PlayerProfile PP = Users.getProfile(player);
|
|
||||||
|
|
||||||
float skillvalue = (float) PP.getSkillLevel(SkillType.REPAIR);
|
Player player = (Player) sender;
|
||||||
String percentage = String.valueOf((skillvalue / 1000) * 100);
|
PlayerProfile PP = Users.getProfile(player);
|
||||||
String repairmastery = String.valueOf((skillvalue / 500) * 100);
|
|
||||||
player.sendMessage(mcLocale.getString("Skills.Header", new Object[] { mcLocale.getString("Repair.SkillName") }));
|
|
||||||
player.sendMessage(mcLocale.getString("Commands.XPGain", new Object[] { mcLocale.getString("Commands.XPGain.Repair") }));
|
|
||||||
|
|
||||||
if (mcPermissions.getInstance().repair(player))
|
float skillvalue = (float) PP.getSkillLevel(SkillType.REPAIR);
|
||||||
player.sendMessage(mcLocale.getString("Effects.Level", new Object[] { PP.getSkillLevel(SkillType.REPAIR), PP.getSkillXpLevel(SkillType.REPAIR), PP.getXpToLevel(SkillType.REPAIR) }));
|
String percentage = String.valueOf((skillvalue / 1000) * 100);
|
||||||
|
String repairmastery = String.valueOf((skillvalue / 500) * 100);
|
||||||
|
|
||||||
|
int arcaneForgingRank = Repair.getArcaneForgingRank(PP);
|
||||||
|
|
||||||
|
player.sendMessage(mcLocale.getString("Skills.Header", new Object[] { mcLocale.getString("Repair.SkillName") }));
|
||||||
|
player.sendMessage(mcLocale.getString("Commands.XPGain", new Object[] { mcLocale.getString("Commands.XPGain.Repair") }));
|
||||||
|
player.sendMessage(mcLocale.getString("Effects.Level", new Object[] { PP.getSkillLevel(SkillType.REPAIR), PP.getSkillXpLevel(SkillType.REPAIR), PP.getXpToLevel(SkillType.REPAIR) }));
|
||||||
|
|
||||||
player.sendMessage(mcLocale.getString("Skills.Header", new Object[] { mcLocale.getString("Effects.Effects") }));
|
player.sendMessage(mcLocale.getString("Skills.Header", new Object[] { mcLocale.getString("Effects.Effects") }));
|
||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsRepair1_0"), mcLocale.getString("m.EffectsRepair1_1") }));
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsRepair1_0"), mcLocale.getString("m.EffectsRepair1_1") }));
|
||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsRepair2_0"), mcLocale.getString("m.EffectsRepair2_1") }));
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsRepair2_0"), mcLocale.getString("m.EffectsRepair2_1") }));
|
||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsRepair3_0"), mcLocale.getString("m.EffectsRepair3_1") }));
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsRepair3_0"), mcLocale.getString("m.EffectsRepair3_1") }));
|
||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsRepair4_0", new Object[] { LoadProperties.repairDiamondLevel }), mcLocale.getString("m.EffectsRepair4_1") }));
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsRepair4_0", new Object[] { LoadProperties.repairDiamondLevel }), mcLocale.getString("m.EffectsRepair4_1") }));
|
||||||
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsRepair5_0"), mcLocale.getString("m.EffectsRepair5_1") }));
|
player.sendMessage(mcLocale.getString("Effects.Template", new Object[] { mcLocale.getString("m.EffectsRepair5_0"), mcLocale.getString("m.EffectsRepair5_1") }));
|
||||||
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") }));
|
||||||
player.sendMessage(mcLocale.getString("m.RepairRepairMastery", new Object[] { repairmastery }));
|
player.sendMessage(mcLocale.getString("m.RepairRepairMastery", new Object[] { repairmastery }));
|
||||||
player.sendMessage(mcLocale.getString("m.RepairSuperRepairChance", new Object[] { percentage }));
|
player.sendMessage(mcLocale.getString("m.RepairSuperRepairChance", new Object[] { percentage }));
|
||||||
player.sendMessage(mcLocale.getString("m.ArcaneForgingRank", new Object[] { Repair.getArcaneForgingRank(PP.getSkillLevel(SkillType.REPAIR)) }));
|
player.sendMessage(mcLocale.getString("m.ArcaneForgingRank", new Object[] { arcaneForgingRank }));
|
||||||
player.sendMessage(mcLocale.getString("m.ArcaneEnchantKeepChance", new Object[] { Repair.getEnchantChance(Repair.getArcaneForgingRank(PP.getSkillLevel(SkillType.REPAIR))) }));
|
player.sendMessage(mcLocale.getString("m.ArcaneEnchantKeepChance", new Object[] { Repair.getEnchantChance(arcaneForgingRank) }));
|
||||||
player.sendMessage(mcLocale.getString("m.ArcaneEnchantDowngradeChance", new Object[] { Repair.getDowngradeChance(Repair.getArcaneForgingRank(PP.getSkillLevel(SkillType.REPAIR))) }));
|
player.sendMessage(mcLocale.getString("m.ArcaneEnchantDowngradeChance", new Object[] { Repair.getDowngradeChance(arcaneForgingRank) }));
|
||||||
|
|
||||||
Page.grabGuidePageForSkill(SkillType.REPAIR, player, args);
|
Page.grabGuidePageForSkill(SkillType.REPAIR, player, args);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void dataCalculations(float skillValue) {
|
||||||
|
if (skillValue >= 1000) {
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,9 @@ public class Repair {
|
|||||||
* @param skillLevel The skill level of the player whose rank is being checked
|
* @param skillLevel The skill level of the player whose rank is being checked
|
||||||
* @return The player's current Arcane Forging rank
|
* @return The player's current Arcane Forging rank
|
||||||
*/
|
*/
|
||||||
public static int getArcaneForgingRank(int skillLevel) {
|
public static int getArcaneForgingRank(PlayerProfile PP) {
|
||||||
|
int skillLevel = PP.getSkillLevel(SkillType.REPAIR);
|
||||||
|
|
||||||
if (skillLevel >= LoadProperties.arcaneRank4) {
|
if (skillLevel >= LoadProperties.arcaneRank4) {
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
@ -184,7 +186,7 @@ public class Repair {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int rank = getArcaneForgingRank(Users.getProfile(player).getSkillLevel(SkillType.REPAIR));
|
int rank = getArcaneForgingRank(Users.getProfile(player));
|
||||||
|
|
||||||
if (rank == 0 || !mcPermissions.getInstance().arcaneForging(player)) {
|
if (rank == 0 || !mcPermissions.getInstance().arcaneForging(player)) {
|
||||||
for (Enchantment x : enchants.keySet()) {
|
for (Enchantment x : enchants.keySet()) {
|
||||||
|
@ -162,7 +162,7 @@ Mining.Ability.Locked.2=LOCKED UNTIL 500+ SKILL (DEMOLITIONS EXPERTISE)
|
|||||||
Mining.Ability.Lower=[[GRAY]]**YOU LOWER YOUR PICKAXE**
|
Mining.Ability.Lower=[[GRAY]]**YOU LOWER YOUR PICKAXE**
|
||||||
Mining.Ability.Ready=[[GREEN]]**YOU READY YOUR PICKAXE**
|
Mining.Ability.Ready=[[GREEN]]**YOU READY YOUR PICKAXE**
|
||||||
Mining.Effect.Decrease=[[RED]]Demolitions Expert Damage Decrease: [[YELLOW]]{0}%
|
Mining.Effect.Decrease=[[RED]]Demolitions Expert Damage Decrease: [[YELLOW]]{0}%
|
||||||
Mining.Effect.Drop.Chance=[[RED]]Double Drop Chance: [[YELLOW]]{0}%
|
Mining.Effect.DropChance=[[RED]]Double Drop Chance: [[YELLOW]]{0}%
|
||||||
Mining.Listener=Mining:
|
Mining.Listener=Mining:
|
||||||
Mining.SkillName=MINING
|
Mining.SkillName=MINING
|
||||||
Mining.Skills.SuperBreaker.Off=[[RED]]**Super Breaker has worn off**
|
Mining.Skills.SuperBreaker.Off=[[RED]]**Super Breaker has worn off**
|
||||||
@ -364,7 +364,7 @@ Combat.TouchedFuzzy=[[DARK_RED]]Touched Fuzzy. Felt Dizzy.
|
|||||||
|
|
||||||
#COMMANDS
|
#COMMANDS
|
||||||
##generic
|
##generic
|
||||||
mcMMO.Description=[[DARK_AQUA]]About the [[YELLOW]]mcMMO[[DARK_AQUA]] Project:,[[GOLD]]mcMMO is an [[RED]]open source[[GOLD]] RPG mod created in February 2011,[[GOLD]]by [[BLUE]]nossr50[[GOLD]]. The goal is to provide a quality RPG experience.,[[DARK_AQUA]]Tips:,[[GOLD]] - [[GREEN]]Use [[RED]]/mcc[[GREEN]] to see commands,[[GOLD]] - [[GREEN]]Type [[RED]]/SKILLNAME[[GREEN]] to see detailed skill info,[[DARK_AQUA]]Developers:,[[GOLD]] - [[GREEN]]nossr50 [[BLUE]](Project Lead),[[GOLD]] - [[GREEN]]GJ [[BLUE]](Senior Developer),[[GOLD]] - [[GREEN]]NuclearW [[BLUE]](Developer),[[DARK_AQUA]]Useful Links:,[[GOLD]] - [[GREEN]]issues.mcmmo.org[[GOLD]] Bug Reporting,[[GOLD]] - [[GREEN]]#mcmmo @ irc.esper.net[[GOLD]] IRC Chat,[[GOLD]] - [[GREEN]]http://bit.ly/H6XwFb[[GOLD]] Bukkit Forum Thread
|
mcMMO.Description=[[DARK_AQUA]]About the [[YELLOW]]mcMMO[[DARK_AQUA]] Project:,[[GOLD]]mcMMO is an [[RED]]open source[[GOLD]] RPG mod created in February 2011,[[GOLD]]by [[BLUE]]nossr50[[GOLD]]. The goal is to provide a quality RPG experience.,[[DARK_AQUA]]Tips:,[[GOLD]] - [[GREEN]]Use [[RED]]/mcc[[GREEN]] to see commands,[[GOLD]] - [[GREEN]]Type [[RED]]/SKILLNAME[[GREEN]] to see detailed skill info,[[DARK_AQUA]]Developers:,[[GOLD]] - [[GREEN]]nossr50 [[BLUE]](Project Lead),[[GOLD]] - [[GREEN]]GJ [[BLUE]](Senior Developer),[[GOLD]] - [[GREEN]]NuclearW [[BLUE]](Developer),,[[GOLD]] - [[GREEN]]bm01 [[BLUE]](Developer),[[DARK_AQUA]]Useful Links:,[[GOLD]] - [[GREEN]]issues.mcmmo.org[[GOLD]] Bug Reporting,[[GOLD]] - [[GREEN]]#mcmmo @ irc.esper.net[[GOLD]] IRC Chat,[[GOLD]] - [[GREEN]]http://bit.ly/H6XwFb[[GOLD]] Bukkit Forum Thread
|
||||||
Commands.Ability.Off=Ability use toggled [[RED]]off
|
Commands.Ability.Off=Ability use toggled [[RED]]off
|
||||||
Commands.Ability.On=Ability use toggled [[GREEN]]on
|
Commands.Ability.On=Ability use toggled [[GREEN]]on
|
||||||
Commands.AdminChat.Off=Admin Chat only [[RED]]Off
|
Commands.AdminChat.Off=Admin Chat only [[RED]]Off
|
||||||
|
Loading…
Reference in New Issue
Block a user