Configuration API Help

Discussion in 'Plugin Development' started by boss86741, Jun 26, 2013.

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


    I need help with my configuration. You know how in plugins like Herochat, they have the chat channel format configuration, and they have variables like {prefix} which in-game is replaced with the player's prefix? And it even gets the placing/format right. Well, I can't figure out how to do that. I know how to get the entire String but not just to look for a specific thing and where it goes in the message in-game. Don't give me any of that .contains("{prefix}") stuff because that wouldn't get the placing of the prefix in the correct place. It just tells you if the argument {prefix} exists in the string.


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jun 2, 2016
  2. Online

    timtower Administrator Administrator Moderator

    boss86741 try replace("{prefix}",yourprefixhere)
    ps. don't bump that fast
Thread Status:
Not open for further replies.

Share This Page