Setting and getting config file info

Discussion in 'Plugin Development' started by ItsMas_, Jan 7, 2016.

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

    ItsMas_

    In the following example, how would I get, save and set the string from the path 'Players -> ItsMas_ -> banreason'?
    (This is stored on the config.yml file)

    Code:
    Players:
      ItsMas_:
        banned: false
        banreason: 'Testing reason 123'
        banpunisher: CONSOLE
        muted: false
        mutereason: ''
        mutepunisher:
     
  2. Offline

    mine-care

    wiki.bukkit.org/Configuration_API_Reference
     
  3. Offline

    teej107

  4. Offline

    mine-care

    @teej107 oh wow... Thanks, i just noticed i pasted in.. a... Unique way :p
     
    teej107 likes this.
Thread Status:
Not open for further replies.

Share This Page