getConfig()

Discussion in 'Plugin Development' started by ChrystianSandu, Jul 18, 2014.

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

    ChrystianSandu

    When I put getConfig().options().copyDefaults(true); in public void onEnable() only the first lines that have the prefix # are copied. If I put (in .jar config)
    Code:
    # Put this true
    THIS: false
    # Put this false
    False: true
    in config from plugin > plugin name show
    Code:
    # Put this true
    THIS: false
    False: true
    Why? (sorry for my english)
     
  2. Offline

    fireblast709

    ChrystianSandu SnakeYAML doesn't support configs, only a header (which are the comments before any config). Use saveDefaultConfig() to copy the comments.
     
    ChrystianSandu likes this.
  3. Offline

    ChrystianSandu

Thread Status:
Not open for further replies.

Share This Page