Spigot PlayerSQL 2.12.3

Synchronize data between servers.

  1. May be due to the timing save task. /w\
    Let me fix it.
  2. 2 updates in 2 minutes?
  3. WARN handleDisconnection() called twice
    User '...' has disconnected, reason: Your data is locked; login later.

    What can i do if this appear to often. I already changed the "delay". Is it a database issue?
  4. Using 1.8.7 spigot.
    This error occurred when first set up.

    • 08:47:47 ERROR]: Could not load 'plugins/playersql-1.17.2.jar' in folder 'plugins'
    • org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/mengcraft/playersql/Main : Unsupported major.minor version 52.0
    • at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[Spigot-1.8.7-R0.1.jar:git-Spigot-f94fe8f-d27e6d0]
    • at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[Spigot-1.8.7-R0.1.jar:git-Spigot-f94fe8f-d27e6d0]
    • at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [Spigot-1.8.7-R0.1.jar:git-Spigot-f94fe8f-d27e6d0]
    • at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:291) [Spigot-1.8.7-R0.1.jar:git-Spigot-f94fe8f-d27e6d0]
    • at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198) [Spigot-1.8.7-R0.1.jar:git-Spigot-f94fe8f-d27e6d0]
    • at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:524) [Spigot-1.8.7-R0.1.jar:git-Spigot-f94fe8f-d27e6d0]
    • at java.lang.Thread.run(Unknown Source) [?:1.7.0_79]
    • Caused by: java.lang.UnsupportedClassVersionError: com/mengcraft/playersql/Main : Unsupported major.minor version 52.0
  5. No worries not.
    Java8 is required.
  6. Hi when setting this up for the first time, Can i expect players to lose their items ?
  7. Normally not because if new player join with a kit, it doesn't disappear and it sync with the database.
    But its better to tell your member to save their inventory in chests because of maintenance. xP
  8. I use this plugin since month, and i'm being tired of all those dupe.... again...

    So, disable health sync, go into a server, add some stuff, leave server, prepare /suicide on a macro, go on an other server and type /suicide ultra fast (Before the inv is sync). Boom. Dupe.

    Instead of /suicide you can put it in an ItemFrame, etc etc etc...
    #749 Kouki, Oct 13, 2015
    Last edited: Oct 13, 2015
  9. I Would suggest to chnage its behavior to something different.

    If a player joins the server, the plugin starts checking the data after n ticks.
    if it is locked, wait for n ticks and try again.
    And it will do so on until the data is available or if it has tried it for x seconds.
    This will improve the Performance much, because on most mysql servers the data should already be written when the player arrives on the server.
    If a player joins the server it would be also useful to block all interactions until the inventory is loaded.
    It sould even fix the issue mentioned by @Kouki

    It that possible? @caoli5288
  10. Yup, block all event is the key. Caoli blocked a lot of event but not all (Interaction with ItemFrame, ArmorStand IS Possible while inventory isn't synced up). I fixed it myself, i dont know how all those github work i would've pulled my "little" fix.

    EDIT Ok i'v created at pull request : https://github.com/caoli5288/PlayerSQL/pull/25
    #751 Kouki, Oct 22, 2015
    Last edited: Oct 22, 2015
  11. Is this able to sync things like magic mods progression ?
    I'm thinking about ChromatiCraft infused abilities, Minegicka elements, etc...

    I realize how stupid my question can sound but it would be so great if that worked so I thought it was worth asking.
  12. It should work, yes.
  13. When I login, it says "Your data is locked; login later"
  14. You can't use the old config & old saved data in your database. I tried it and got an error so i must delete the old database.
    Maybe there is a way to use the old inventory.
  15. you mean all the item in inventory will be deleted @@@@!!!
  16. Sure. I haven't found another way to use the old data. Try to create a new database and connect it with the new database. Don't delete it. Maybe you can export the old database and adjust it to the new database. It's only an idea. :)
  17. I just wanna report this error:

    Code (Text):
    [16:32:07 INFO]: Preparing start region for level 2 (Seed: 842772611561255950)
    [16:33:28 WARN]: [PlayerSQL] Task #128096 for PlayerSQL v2.0-SNAPSHOT generated an exception
            at com.mengcraft.playersql.UserManager.syncUser(UserManager.java:102) ~[?:?]
            at com.mengcraft.playersql.task.DailySaveTask.run(DailySaveTask.java:34) ~[?:?]
            at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[paperspigot20151220.jar:git-PaperSpigot-d709888-d3e0b6f]
            at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [paperspigot20151220.jar:git-PaperSpigot-d709888-d3e0b6f]
            at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:780) [paperspigot20151220.jar:git-PaperSpigot-d709888-d3e0b6f]
            at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [paperspigot20151220.jar:git-PaperSpigot-d709888-d3e0b6f]
            at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:711) [paperspigot20151220.jar:git-PaperSpigot-d709888-d3e0b6f]
            at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:614) [paperspigot20151220.jar:git-PaperSpigot-d709888-d3e0b6f]
            at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]