Ignore case.

This commit is contained in:
Brianna 2019-08-05 16:21:49 -04:00
parent a75886c2e7
commit 204f16886a
2 changed files with 7 additions and 3 deletions

View File

@ -15,7 +15,11 @@ public abstract class Manager<K, V> {
}
public Optional<V> getValue(K key) {
return Optional.ofNullable(map.get(key));
for (Object k : map.keySet()) {
if (k.toString().equalsIgnoreCase(key.toString()))
return Optional.ofNullable(map.get(k));
}
return Optional.empty();
}
public void add(K key, V value) {

View File

@ -13,13 +13,13 @@ description:
# What items this enchant can be applied to.
item-whitelist:
- "SWORDS"
- "TOOLS"
# For a full list of effects, please visit: https://wiki.songoda.com/display/SON/EpicEnchants
effects:
POTION:
# The trigger that will fire this effect
trigger: "ATTACK_PLAYER_MELEE, ATTACK_MOB_MELEE"
trigger: "BLOCK_BREAK"
# Potion Effect that should be applied.
potion-type: FAST_DIGGING
# Amplifier of 0 = SPEED 1 a Amplifier of 1 = SPEED 2, etc.