How is the Config file created?

Discussion in 'Plugin Development' started by ShadowWizardMC, Aug 22, 2013.

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

    ShadowWizardMC

    I know someone is gonna say watch a youtube video and i did what i want to know is do i make a new Config.class file or Make an entirely New JavaProject i would really like to know thx. If you want to see what my code looks like go here : http://pastebin.com/1enxugQh
     
  2. Offline

    Tarestudio

  3. Offline

    lycano

    ShadowWizardMC if you want to know how its done programmatically then take a look at the CraftBukkit or Bukkit source at github. The Configuration object should be good starting point.
     
  4. Offline

    dunbaratu

    All objects of type "Plugin" have a FileConfiguration object associated with them that you can get access to by using:

    this.getConfig()

    This object is the thing that manipulates your plugin's config.yml file.

    Values can be added, deleted and the config can be saved or loaded. See the Bukkit API for FileConfiguration to see more.
     
Thread Status:
Not open for further replies.

Share This Page