Auto save player inventory/location

Discussion in 'Archived: Plugin Requests' started by MarkusNemesis, Mar 8, 2012.

  1. Offline

    MarkusNemesis

    Hello,

    I'm running a server that once in a blue moon has java crash out and the server dying, causing people's inventories to revert to what they were since their last logout (silly design to not save inventories as they go).

    I used to run a plugin called playersaver, but it's since expired and so thus I need a new plugin to serve this purpose.

    All I'd like is for it to save the players inventory every X minutes

    cheers.
     
  2. Offline

    turt2live

    /save-all
    /save-on
     
  3. Offline

    MarkusNemesis

    Does that save player inventories frequently? Because that is how I've got my server currently and it only saves inventories on log-off. Which is not handy when the server dies.
     
  4. Offline

    turt2live

    The built in autosave will save everything to file...

    But the larger issue is: Why does your server crash? You should figure that out and fix it
     
  5. Offline

    MarkusNemesis

  6. Offline

    turt2live

    1. Don't use OpenJDK (it's kinda bad)
    2. You need more RAM, or you have too many plugins
    3. It is likely your server's hardware is damaged (that is a rare error)
     
  7. Offline

    MarkusNemesis

    Alright. I'll try work out how to install proper Java.

    it's been 30 mins and none of the player inventories have saved.

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

    LinkterSHD

    firstly there is a bukkit plugin which can save everything and can do backups as well
    Here is the link:
    http://forums.bukkit.org/threads/44085
    Comment if you need anyother help

    Thats not what he is looking for. He is looking for a plugin like that but saves it every X amount of minutes

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

    MarkusNemesis

    I believe I tried this mod, and it just saves the worlds and not the inventories....

    For backing up, I've a crontab that zips and backs up the world, so that is no real problem.
     
  10. Offline

    LinkterSHD

    No no no. This also does the /save-all command as well. But it does it automatically for you. If it doesnt work try Auto Save
     
  11. Offline

    MarkusNemesis

    Any idea what goes into the config? I don't want it backing up my worlds, and I want it saving inventories at least every 5 or less minutes...
     
  12. I have the same crashes as well as this one
    I have world_saver, but i think that causes this crash, cant remove it though =(
    /save-on does not save often enough, and save plugins are all outdate, any ideas?

    2012-04-09 19:58:53 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 792
    2012-04-09 19:58:53 [SEVERE] at org.bukkit.craftbukkit.util.LongHashset.popAll(LongHashset.java:145)
    2012-04-09 19:58:53 [SEVERE] at net.minecraft.server.World.l(World.java:1956)
    2012-04-09 19:58:53 [SEVERE] at net.minecraft.server.World.doTick(World.java:1759)
    2012-04-09 19:58:53 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:538)
    2012-04-09 19:58:53 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    2012-04-09 19:58:53 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    2012-04-09 19:58:53 [SEVERE] Unexpected exception
    java.lang.ArrayIndexOutOfBoundsException: 792
    at org.bukkit.craftbukkit.util.LongHashset.popAll(LongHashset.java:145)
    at net.minecraft.server.World.l(World.java:1956)
    at net.minecraft.server.World.doTick(World.java:1759)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:538)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
     

Share This Page