reading and writeing settings.properties?

Discussion in 'Bukkit Discussion' started by DarkScience, Jan 9, 2011.

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

    DarkScience

    Curious as to how i would read/write settings to/from files in Bukkit plugin's? I tried my code from hmod but no luck.
    public PropertiesFile properties = new PropertiesFile("encraft.properties");
     
  2. Offline

    croxis

    PropertiesFile is not being supported anymore. Until bukkit's solution is ready you can take the PropertiesFile class from hmod and put it in your own project.
     
  3. Offline

    DarkScience

    Damned how would i do that exactly? My mod relies on this drastically.
     
  4. Offline

    George

    Copy PropertiesFile.java from the hmod source into your the directory with your plugins sources. If you are using Eclipse you can just drag and the fire directly into the correct package within the IDE.
     
    DarkScience likes this.
  5. Offline

    DarkScience

    Works wonder's thanks.
     
  6. Offline

    Kutagh

    Keep in mind that we don't recommend the propertiesfile at all for anything but settings loaded in at start-up and the rest in the database ;)
     
Thread Status:
Not open for further replies.

Share This Page