Ignore case.
This commit is contained in:
parent
a75886c2e7
commit
204f16886a
|
@ -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) {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue