Config return something, but config is empty

Discussion in 'Spigot Plugin Development' started by FroZenKeyboard, Apr 22, 2017.

  1. How would i fix this ^, it's nothing in the config file. But it return something..
     
  2. Give us more details! What exactly is your problem? Which type of config?
     
    • Like Like x 1
  3. Without enough information such as code, config, stacktrace etc we can't help.

    Edit: Freaking ninja'd by @mastercake10 ;-;
     
  4. My config looks like this:

    Code (Text):
    prefix: '&2&lMLG&b&lRush &8> &7'
    #
    redformat: '&c{playername}&8: &7{message}'
    #
    blueformat: '&9BLÅ&8:&7{playername}&7: &r{message}'
    #
    lobbyformat: '&3{playername}&8>&7{message}'
    #
    compassnavn: '&7Velg lag'
    #
    leavenavn: '&cForlat spillet'
    #
    diamantperm: 'mlgrush.diamond'
    #
    diamantnavn: '&9Start spillet'
    #
    compassplass: 4
    #
    leaveplass: 8
    #
    diamantplass: 0
    #
    joinmessage: '&7Spilleren &b{playername} &7ble med i spillet'
    #
    joinedblue: '&7Du ble med på lag &9&lBLÅ'
    #
    maxplayers: '&c&oDette laget er fult!'
    #
    joinedred: '&7Du ble med på lag &c&lRØD'
    #
    pinnenavn: '&5Pinne'
    #
    noperm: '&c&oDette har du ikke tilgang til'
    And in the server it's blank.

    Code for saving config:

    Code (Text):
            saveConfig();
            saveDefaultConfig();
     
  5. Look up the meaning of the words "save" and "load"
     
  6. Yea, but the config is empty. But the config returns messages in the game. And i don't know what the **** is going on.
     
  7. Wait:

    Did you created a config.yml in your src folder? The .saveDefaultConfig() command overrides your config.yml in the plugin's folder.