mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Config Validation
This commit is contained in:
parent
ce80636141
commit
d495054eb5
@ -733,10 +733,18 @@ public class AdvancedConfig extends AutoUpdateConfigLoader {
|
|||||||
reason.add("Skills.Unarmed.IronGrip_MaxBonusLevel should be at least 1!");
|
reason.add("Skills.Unarmed.IronGrip_MaxBonusLevel should be at least 1!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getIronArmMinBonus() < 0) {
|
||||||
|
reason.add("Skills.Unarmed.IronArm_BonusMin should be at least 0!");
|
||||||
|
}
|
||||||
|
|
||||||
if (getIronArmMaxBonus() < 0) {
|
if (getIronArmMaxBonus() < 0) {
|
||||||
reason.add("Skills.Unarmed.IronArm_BonusMax should be at least 0!");
|
reason.add("Skills.Unarmed.IronArm_BonusMax should be at least 0!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getIronArmMaxBonus() < getIronArmMinBonus()) {
|
||||||
|
reason.add("Skills.Unarmed.IronArm_BonusMax should be greater than or equal to Skills.Unarmed.IronArm_BonusMin!");
|
||||||
|
}
|
||||||
|
|
||||||
if (getIronArmIncreaseLevel() < 1) {
|
if (getIronArmIncreaseLevel() < 1) {
|
||||||
reason.add("Skills.Unarmed.IronArm_IncreaseLevel should be at least 1!");
|
reason.add("Skills.Unarmed.IronArm_IncreaseLevel should be at least 1!");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user