Bukkit Inventory Rollback v1.3.6

Allows server moderators to restore player items and data from numerous backups via a GUI.

  1. It's not something that will benefit myself so it's unlikely to be added by me. People are welcome to make a pull request on GitHub if they wish for this but it's too much work for me to do for something I won't use since this was originally developed for my Minecraft network and released on Spigot/GitHub for free for others to benefit from if they wanted.

    It's much simpler anyways to just purge the data when upgrading to 1.13.
     
  2. It's strange because my world started on 1.13 from zero... the world is a clean one generated from spigot 1.13, so I haven't many 1.12.2 conversion on my files. But, inventories without 1.13 items are read fine,if I insert a 1.13 item, it generates the error I posted some weeks ago.
     
  3. I will see if I can replicate it but I haven't come across any errors myself.

    If you can still replicate it yourself let me know as it may be beneficial if you can send me a copy of the yml file that backup is held in so I can try and debug the problem.
     
  4. How do I restore all the player's data from the GUI, not just food health and levels I don't see a restore with the all of it at one time stuff?
     
  5. That's not a feature.

     
  6. danjono updated Inventory Rollback with a new update entry:

    1.13 support

    Read the rest of this update entry...
     
    • Like Like x 1
  7. Installed on 1.13.1, /ir restore only brings up an inventory with my head in it. Can't even be clicked.
     
  8. Are you typing /ir restore <PLAYERNAME> and not just /ir restore? If you don't have anything backed up it won't show anything in the menu apart from the player head.
     
  9. Got it. My fault.
     
  10. How do I restore their items then?
     
  11. You drag the items they need back out of the GUI onto the ground for them to pickup. If you also need to restore food, hunger, experience or enderchest you click the relevant icon for it too.
     
  12. couldn't you make a command for a rollback # example: /ir rollback (player) (type) (number)?
     
  13. No, it's unnecessary and I won't add that myself due to my previous reasoning before.

    The code is open source on GitHub if you wish to add it yourself though.
     
  14. How i change the timezone to CEST (UTC+2 // GMT+2) ? And use the 24h format
     
  15. It uses SimpleDateFormat in Java if you want to see how you can customize it https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

    In your case, in the config set timeZone to 'GMT+3' and timeFormat to 'dd/MM/yyyy hh:mm:ss z'. Remove the 'z' if you don't want to see the time zone in the GUI.
     
    • Like Like x 1
  16. Is it possible to make it compatible with paperspigot?
     
  17. It's already compatible with paperspigot. Just update paper to the latest build.
     
  18. [09:06:13 ERROR]: Cannot load plugins\InventoryRollback\config.yml
    org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
    in 'string', line 71, column 3:
    reload: '&2Plugin has been reloa ...
    ^
    expected <block end>, but found '<scalar>'
    in 'string', line 77, column 56:
    ... has been reloaded successfully'.
    ^

    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:162) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:130) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:178) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at me.danjono.inventoryrollback.config.ConfigFile.<init>(ConfigFile.java:24) ~[?:?]
    at me.danjono.inventoryrollback.InventoryRollback.startupTasks(InventoryRollback.java:64) ~[?:?]
    at me.danjono.inventoryrollback.InventoryRollback.onEnable(InventoryRollback.java:47) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:325) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugin(CraftServer.java:438) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugins(CraftServer.java:352) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.MinecraftServer.l(MinecraftServer.java:613) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:575) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:435) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.DedicatedServer.init(DedicatedServer.java:311) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:791) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
    Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
    in 'string', line 71, column 3:
    reload: '&2Plugin has been reloa ...
    ^
    expected <block end>, but found '<scalar>'
    in 'string', line 77, column 56:
    ... has been reloaded successfully'.
    ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:572) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:214) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:85) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:139) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:437) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    ... 17 more
    [09:06:13 ERROR]: Cannot load plugins\InventoryRollback\config.yml
    org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
    in 'string', line 71, column 3:
    reload: '&2Plugin has been reloa ...
    ^
    expected <block end>, but found '<scalar>'
    in 'string', line 77, column 56:
    ... has been reloaded successfully'.
    ^

    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:162) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:130) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:178) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at me.danjono.inventoryrollback.config.ConfigFile.<init>(ConfigFile.java:24) ~[?:?]
    at me.danjono.inventoryrollback.config.MessageData.<init>(MessageData.java:6) ~[?:?]
    at me.danjono.inventoryrollback.config.ConfigFile.setVariables(ConfigFile.java:138) ~[?:?]
    at me.danjono.inventoryrollback.InventoryRollback.startupTasks(InventoryRollback.java:66) ~[?:?]
    at me.danjono.inventoryrollback.InventoryRollback.onEnable(InventoryRollback.java:47) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:325) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugin(CraftServer.java:438) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugins(CraftServer.java:352) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.MinecraftServer.l(MinecraftServer.java:613) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:575) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:435) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.DedicatedServer.init(DedicatedServer.java:311) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:791) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
    Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
    in 'string', line 71, column 3:
    reload: '&2Plugin has been reloa ...
    ^
    expected <block end>, but found '<scalar>'
    in 'string', line 77, column 56:
    ... has been reloaded successfully'.
    ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:572) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:214) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:85) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:139) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:437) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    ... 19 more
    [09:06:13 ERROR]: Cannot load plugins\InventoryRollback\config.yml
    org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
    in 'string', line 71, column 3:
    reload: '&2Plugin has been reloa ...
    ^
    expected <block end>, but found '<scalar>'
    in 'string', line 77, column 56:
    ... has been reloaded successfully'.
    ^

    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:162) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:130) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:178) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at me.danjono.inventoryrollback.config.ConfigFile.<init>(ConfigFile.java:24) ~[?:?]
    at me.danjono.inventoryrollback.config.SoundData.<init>(SoundData.java:8) ~[?:?]
    at me.danjono.inventoryrollback.config.ConfigFile.setVariables(ConfigFile.java:139) ~[?:?]
    at me.danjono.inventoryrollback.InventoryRollback.startupTasks(InventoryRollback.java:66) ~[?:?]
    at me.danjono.inventoryrollback.InventoryRollback.onEnable(InventoryRollback.java:47) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:325) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugin(CraftServer.java:438) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugins(CraftServer.java:352) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.MinecraftServer.l(MinecraftServer.java:613) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:575) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:435) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.DedicatedServer.init(DedicatedServer.java:311) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:791) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
    Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
    in 'string', line 71, column 3:
    reload: '&2Plugin has been reloa ...
    ^
    expected <block end>, but found '<scalar>'
    in 'string', line 77, column 56:
    ... has been reloaded successfully'.
    ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:572) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:214) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:85) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:139) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:437) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) ~[PaperSpigot-1.13.1-b311.jar:git-Paper-311]
    ... 19 more