I am trying to make it so that it loads the potion name from the config... I can't get it to work. Code: changePotion(effect.getType(), PotionEffectType.getByName(plugin.getConfig().getString("PotionReplacments." + effect.toString() + ".Effect" )), p.getAffectedEntities()); Code: PotionTypes: -HEAL -FIRE_RESISTANCE PotionReplacments: HEAL: -JUMP
Well, I want it to change the potion effects... I have that part all figured out... I just want to know why this isnt working to load it from a config.
You are trying to read imaginary keys. Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler there is no effect key