Fixed default configs

This commit is contained in:
Indyuce 2020-12-21 23:36:12 +01:00
parent 8d416dbdef
commit 0c789c8154
3 changed files with 15 additions and 16 deletions

View File

@ -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;
} }
} }

View File

@ -26,18 +26,18 @@ mysql:
user: mmolover user: mmolover
pass: ILoveAria pass: ILoveAria
properties: properties:
cachePrepStmts: true cachePrepStmts: true
prepStmtCacheSize: 250 prepStmtCacheSize: 250
prepStmtCacheSqlLimit: 2048 prepStmtCacheSqlLimit: 2048
# The default values for all playerdata # The default values for all playerdata
# All new players will start with these values # All new players will start with these values
default-playerdata: default-playerdata:
level: 1 level: 1
class-points: 0 class-points: 0
skill-points: 0 skill-points: 0
attribute-points: 0 attribute-points: 0
attribute-realloc-points: 0 attribute-realloc-points: 0
# The list of all conditions which must be met for the # The list of all conditions which must be met for the
# BLOCK REGEN and BLOCK RESTRICTIONS to apply. Set to # BLOCK REGEN and BLOCK RESTRICTIONS to apply. Set to
@ -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

View File

@ -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