Earlier Versions
| Name | Size | Uploaded | Game Version | Downloads | |
| ObjectSaver v 1.2 release | 4.83 KB | Jun 7, 2014 | CB 1.7.9-R0.1 | 203 | Download |
| ObjectSaver v 1.1 release | 4.83 KB | Jun 7, 2014 | CB 1.7.9-R0.1 | 135 | Download |
| ObjectSaver v 1.0 release | 2.50 KB | Apr 20, 2014 | 1.7.4 | 122 | Download |
Description
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 🙂

Get 0.05 TON 💎
Download
Add a comment