mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-25 01:58:28 +01:00
Some more comments
This commit is contained in:
parent
2c752dc470
commit
ef6b70f686
@ -80,6 +80,7 @@ public class ExcavationTreasureConfig extends Config implements UnsafeValueValid
|
|||||||
|
|
||||||
ArrayList<String> dropsFrom = new ArrayList(currentTreasure.getNode("Drops_From").getList(TypeToken.of(String.class)));
|
ArrayList<String> dropsFrom = new ArrayList(currentTreasure.getNode("Drops_From").getList(TypeToken.of(String.class)));
|
||||||
|
|
||||||
|
//VALIDATE AMOUNT
|
||||||
if(amount <= 0)
|
if(amount <= 0)
|
||||||
{
|
{
|
||||||
mcMMO.p.getLogger().severe("Excavation Treasure named "+treasureName+" in the config has an amount of 0 or below, is this intentional?");
|
mcMMO.p.getLogger().severe("Excavation Treasure named "+treasureName+" in the config has an amount of 0 or below, is this intentional?");
|
||||||
@ -87,12 +88,14 @@ public class ExcavationTreasureConfig extends Config implements UnsafeValueValid
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//VALIDATE XP
|
||||||
if(xp <= 0)
|
if(xp <= 0)
|
||||||
{
|
{
|
||||||
mcMMO.p.getLogger().info("Excavation Treasure named "+treasureName+" in the config has xp set to 0 or below, is this intentional?");
|
mcMMO.p.getLogger().info("Excavation Treasure named "+treasureName+" in the config has xp set to 0 or below, is this intentional?");
|
||||||
xp = 0;
|
xp = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//VALIDATE DROP CHANCE
|
||||||
if(dropChance <= 0)
|
if(dropChance <= 0)
|
||||||
{
|
{
|
||||||
mcMMO.p.getLogger().severe("Excavation Treasure named "+treasureName+" in the config has a drop chance of 0 or below, is this intentional?");
|
mcMMO.p.getLogger().severe("Excavation Treasure named "+treasureName+" in the config has a drop chance of 0 or below, is this intentional?");
|
||||||
@ -100,12 +103,14 @@ public class ExcavationTreasureConfig extends Config implements UnsafeValueValid
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//VALIDATE DROP LEVEL
|
||||||
if(dropLevel < 0)
|
if(dropLevel < 0)
|
||||||
{
|
{
|
||||||
mcMMO.p.getLogger().info("Excavation Treasure named "+treasureName+" in the config has a drop level below 0, is this intentional?");
|
mcMMO.p.getLogger().info("Excavation Treasure named "+treasureName+" in the config has a drop level below 0, is this intentional?");
|
||||||
dropLevel = 0;
|
dropLevel = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//VALIDATE DROP SOURCES
|
||||||
if(dropsFrom == null || dropsFrom.isEmpty())
|
if(dropsFrom == null || dropsFrom.isEmpty())
|
||||||
{
|
{
|
||||||
mcMMO.p.getLogger().severe("Excavation Treasure named "+treasureName+" in the config has no drop targets, which would make it impossible to obtain, is this intentional?");
|
mcMMO.p.getLogger().severe("Excavation Treasure named "+treasureName+" in the config has no drop targets, which would make it impossible to obtain, is this intentional?");
|
||||||
|
Loading…
Reference in New Issue
Block a user