org.bukkit.util.config.ConfigurationNode.getString wrapping strings

Discussion in 'Plugin Development' started by pmx, Sep 1, 2011.

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

    pmx

    Hey Guys,

    I'm using org.bukkit.util.config.ConfigurationNode.getString to pull strings from yaml files for Lick. The problem I'm having is that it's wrapping the output string in {content=...} and im having to strip this out to use the string. Is there any reason this might be happeneing?

    the code in question:

    https://gist.github.com/1185730

    thanks folks!
     
  2. Shouldn't be happening, have you checked the file to see if it's being saved like that?
     
  3. Offline

    pmx

    I'd called one node too few in the path. Changed it to message.content and now it's fine :D

    thanks for the pointer!
     
  4. No problem :)
     
Thread Status:
Not open for further replies.

Share This Page