Config Help!

Discussion in 'Plugin Development' started by bartboy8, Jun 28, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    bartboy8

    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
    
     
  2. why it wont work? what you trying to archieve?
     
  3. Offline

    bartboy8

    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.
     
  4. Offline

    Sagacious_Zed Bukkit Docs

    You are trying to read imaginary keys.
    Show Spoiler
    there is no effect key
     
Thread Status:
Not open for further replies.

Share This Page