Development Assistance Config text doesnt go to Plugin!

Discussion in 'Plugin Help/Development/Requests' started by FrazyDev, May 2, 2015.

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

    FrazyDev

    Hello everybody. As I started an InfoCommands plugin, because it is easy and i am a beginner, something doesnt work for me

    getConfig().options().copyDefaults(true);
    saveConfig();

    Where do i have to put it so when i do the command, it says whats in the Config. It works for the 1st one, but not for the others

    MY CODE: http://pastebin.com/h7Qmufc5

    Config.yml: http://pastebin.com/1wi1Mdwe


    Please finish it for me, or tell me how to do it!

    Kind Regards,
    FrazyDev
     
  2. I see a few errors/mistakes:
    1: Remove the logging messages in onEnable.
    2: Remove onDisable
    3. Put saveDefaultConfig(); in onEnable.
    4. On the first one, you are getting the String from the config (working), but on the other ones, your just sending them a String (not working)
     
Thread Status:
Not open for further replies.

Share This Page