Plugin#saveDefaultconfig() causing IllegalArgumentException when file doesn't exist

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None

      Hi,

      The documentation of the bukkit is not the same as the implementations in spigot.
      In the documentation, for Plugin#saveDefaultconfig() it says

      Saves the raw contents of the default config.yml file to the location retrievable by getConfig(). If there is no default config.yml embedded in the plugin, an empty config.yml file is saved. This should fail silently if the config.yml already exists.
      

      But, if there is no default config.yml in the plugin jar, it throws an IllegalArgumentException.

            Assignee:
            Unassigned
            Reporter:
            hugo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: