[LIB/INACTIVE] MFS v0.2 - MySQL/FlatFile Storage System [1.2.5-R1.0]

Discussion in 'Resources' started by spywhere, Apr 18, 2012.

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

    spywhere

    I just make a plugin for store data without write it many times to supported for MySQL, SQLite, H2, PostgreSQL, YML, FlatFile.

    All database system already tested except PostgreSQL which I can't install it on my computer...

    As default, all data will be store on server memory until stop/reload server. This make FlatFile storage work faster than directly write to server hard disk when add a new data.

    http://dev.bukkit.org/server-mods/mfs/
     
    Orcem12 and dark navi like this.
  2. Offline

    spywhere

    MFS v0.2 now release...
    This version add new APIs for column, record and table field... Details is in BukkitDev page...

    Thanks to ray73864

    MFS v0.3 now release...
    This version add a new ability to use with Spout plugin which called "MFSExtend" and some improvements on sample project...
     
    Orcem12 likes this.
  3. Offline

    Orcem12

    @spywhere
    Hey, I noticed no one complimented you! Thanks for this : )

    @spywhere
    Sorry I'm new to flatfile. How would one declare a FlatFile Object? I tried:
    Code:
    FlatFile ff = new FlatFile("Economy", plugin.mfs);
    But got a nasty error. Mind explaining it to a noob so others can benefit?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  4. Offline

    spywhere

    You should make a new instance of MFS by doing like this
    Code:
    MFS mfs=null;
     
    public void onEnable() {
      if(MFSConnector.prepareMFS(pdf,this.getServer().getPluginManager())){
          mfs = MFSConnector.getMFS(this.getServer().getPluginManager(), StorageType.FLATFILE);
      }
    }
    and you can use mfs to store data... database name will be your file name.

    FlatFile class in only for MFS to store data from your input which usually not be used by another plugin.

    PS. More informations on API is on BukkitDev
    PS2. If you still have any problem, feel free to ask me again. I'm not quite good at English :(
     
  5. Offline

    Orcem12

    @spywhere
    I think I got what your saying, that makes more sense anyways : ) Thank you!
     
Thread Status:
Not open for further replies.

Share This Page