Solved Help with variables in config

Discussion in 'Plugin Development' started by ItsComits, Nov 12, 2017.

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

    ItsComits

    Hello, Here is an example config:

    Message-1: 'Hello {0}, and this is message 1'
    Message-1: 'Hello {0}, and {1}'

    I am trying to add arguments which will be numbered. What would be the best way of going about this?
     
  2. Offline

    Zombie_Striker

    @ItsComits
    For each string, use the "String#replaceAll" method to replace those tags.
     
  3. Offline

    ItsComits

    What would be the best way to partner up the variables to the config path?
     
  4. Offline

    Zombie_Striker

    @ItsComits
    What are the variables supposed to be? Are they predefined variables per each message, or are the global variables (Like PlaceholderAPI's %player-count%)
     
  5. Offline

    ItsComits

    They will be predefined. I am trying to achieve something like essentials message.yml.
     
Thread Status:
Not open for further replies.

Share This Page