IO or YAML data storage?

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

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

    FireBreath14

    (Before I begin, I specifially don't want to use SQL or MySQL. I have no idea how it works and I rather not learn.)

    I need a way or thought process on how to store block locations in a file. Right now I'm using the plugin's config, and 1) I don't want people looking in it and seeing a mess (2) Its extremely inefficient. Causing way too much lag.

    If there is no way to store block locations fast (as in 5 locations each second or more) and efficiently, I don't know what to do. I've thought of using a database but I can't find any libraries out there AND I don't know how it works. If someone is out there and knows how to store block locations efficiently, PLEASE HELP xD
     
  2. Offline

    Cirno

    Try multithreading it; just google "multithread Java".
    Due note that only a handful of methods in Bukkit are thread-safe.
     
  3. Offline

    TomFromCollege

    FireBreath14
    Learn SQL, Put it this way, the more you learn, the more you'll have to work with! :)
     
  4. Offline

    Saposhiente

    What TomFromCollege said, also Bukkit.getScheduler().runAsyncTask(...)
     
  5. Offline

    FireBreath14

  6. Offline

    Saposhiente

    How many blocks do you expect to store? Because unless it's a really small number you need SQL. And either way you need runAsyncTask(...).
     
Thread Status:
Not open for further replies.

Share This Page