ObjectSaver

ObjectSaver

Made by Cammeritz.

What it does

ObjectSaver allows you to save every Object (e.g.: HashMaps; Lists; Mobs; Strings ...) into a .dat(a) file.

How to use it

1. Add the plugin ObjectSaver as external jar to your project.

2. Create a new ObjectSaver by using this code:

ObjectSaver saver = new ObjectSaver();

3. Now import the ObjectSaver from de.Cammeritz.ObjectSaver.ObjectSaver

4. Now you have some methods you can use.

getPluginFolderOf(String pluginname) - Will return the file/dir of the plugin. (Returns a file) e.g.: getPluginFolderOf(ObjectSaver) will return -> new File(/plugins/ObjectSaver).

dirExists(File file) - Will return a true if the file/dir exists and a false if not.(Returns a boolean).

createDir(File file) - Will create the dir. (Use this if dir.Exists returns false).

saveObject(Object object, File file) - Will save the Object into the a .dat file.

loadObject(File file) - Will read the Object from the .dat file. (Returns the saved Object).

deleteObject(File file) - Will delete the dir/file.

Source Code

Click here (http:dev.bukkit.org/bukkit-plugins/page/source-code)

Cheapest and Best Minecraft-Servers are NodeCraft-Servers :) NodeCraft


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    78583
  • Created
    Apr 20, 2014
  • Last Released File
    Jun 7, 2014
  • Total Downloads
    1,023
  • License

Categories

Members

Recent Files