Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-1103

YAML: getStringList changes 'yes' to 'true'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • None
    • This issue is not binded to the environment. Java 8 btw.

      Just noticed strange behaviour of YamlConfiguration, where getStringList (and getList method, too) returns a list where 'yes' is changed to 'true'.

      I've set the priority to major because this cause an exception to be thrown and possible stopping plugin to function.

      Example yaml:

        Whitelist:   - yes
        - hello
      

      Example java:

      <yamlConfigurationInstance>.getList("Whitelist") // and print out the values to see the result
      

            md_5 md_5
            kangarko kangarko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: