mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-28 00:55:29 +01:00
Fixed default configs
This commit is contained in:
parent
8d416dbdef
commit
0c789c8154
@ -5,13 +5,13 @@ import java.util.List;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import net.Indyuce.mmocore.api.droptable.condition.Condition;
|
|
||||||
import net.Indyuce.mmocore.api.droptable.condition.ConditionInstance;
|
|
||||||
import org.apache.commons.lang.Validate;
|
import org.apache.commons.lang.Validate;
|
||||||
import org.bukkit.configuration.ConfigurationSection;
|
import org.bukkit.configuration.ConfigurationSection;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
import net.Indyuce.mmocore.MMOCore;
|
import net.Indyuce.mmocore.MMOCore;
|
||||||
|
import net.Indyuce.mmocore.api.droptable.condition.Condition;
|
||||||
|
import net.Indyuce.mmocore.api.droptable.condition.ConditionInstance;
|
||||||
import net.Indyuce.mmocore.api.droptable.dropitem.DropItem;
|
import net.Indyuce.mmocore.api.droptable.dropitem.DropItem;
|
||||||
import net.Indyuce.mmocore.api.loot.LootBuilder;
|
import net.Indyuce.mmocore.api.loot.LootBuilder;
|
||||||
import net.mmogroup.mmolib.api.MMOLineConfig;
|
import net.mmogroup.mmolib.api.MMOLineConfig;
|
||||||
@ -86,11 +86,9 @@ public class DropTable extends PostLoadObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean areConditionsMet(ConditionInstance entity) {
|
public boolean areConditionsMet(ConditionInstance entity) {
|
||||||
for (Condition condition : this.getConditions()) {
|
for (Condition condition : conditions)
|
||||||
if (!condition.isMet(entity)) {
|
if (!condition.isMet(entity))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -56,6 +56,7 @@ custom-mine-conditions:
|
|||||||
protect-custom-mine: false
|
protect-custom-mine: false
|
||||||
|
|
||||||
loot-chests:
|
loot-chests:
|
||||||
|
|
||||||
# Time in seconds it takes for a loot chest to
|
# Time in seconds it takes for a loot chest to
|
||||||
# expire after it was spawned. 600 is 10 minutes.
|
# expire after it was spawned. 600 is 10 minutes.
|
||||||
chest-expire-time: 600
|
chest-expire-time: 600
|
||||||
|
@ -172,8 +172,8 @@ items:
|
|||||||
- '&7&ogreatly encourages you!'
|
- '&7&ogreatly encourages you!'
|
||||||
- ''
|
- ''
|
||||||
- '&7Party Bonuses ({count}):'
|
- '&7Party Bonuses ({count}):'
|
||||||
- '&8- +{buff_additional_experience} Experience Earned!'
|
- '&8- +{buff_additional_experience}% Experience Earned!'
|
||||||
- '&8- +{buff_health_regeneration} Health Regeneration'
|
- '&8- +{buff_health_regeneration}% Health Regeneration'
|
||||||
stats:
|
stats:
|
||||||
slots: [15]
|
slots: [15]
|
||||||
function: profile
|
function: profile
|
||||||
|
Loading…
Reference in New Issue
Block a user