Solved My Custom Bukkit Plugin Help Needed

Discussion in 'Plugin Development' started by Petzl11, Sep 3, 2013.

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

    Petzl11

    Hi guys

    I'm still new to coding Bukkit server plugins,I'v made a plugin that when you type ./mods it will give you a list of mods that you can use on a server,i need it to make a config file so i can add the list of mods there, could someone please give me some help.

    Thanks :D
     
  2. Offline

    kbunkrams97

  3. Offline

    Petzl11

    Last edited by a moderator: Jun 4, 2016
  4. Offline

    kbunkrams97

    Petzl11
    Well you first want to start off by having the config created. If you add saveConfig() to your onEnable() this will make the file. If you have example motd's to be added you will need to create a plugin.yml in your plugin folder and add getConfig().options().copyDefaults(); From there you will do most everything with the getConfig() command like adding data: getConfig().set(String path, Object obj); Also getting data like: getConfig().getInt(String path);
     
  5. Offline

    PogoStick29

    If you're still stuck, try
     
  6. Offline

    Petzl11

    Okay,thanks guys,you all deserve some [gold] [cake] [diamond] [redmushroom] [pig],THANKS :D

    Da fork,why did i add a pig there?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
Thread Status:
Not open for further replies.

Share This Page