Crash Safety: This update introduces a whole new inventory safety system. If the server crashed, because of another plugin or system issues, player inventories are now completely safe.
Prior to this update if the server crashed or you stopped the server incorrectly by e.g. pressing the X close button on your console, inventories could be lost if a player had the Pocket Games inventory open and instead, players ended up with the Pocket Games inventory. This is now an issue of the past.
When a player opens the Pocket Games menu their inventory is saved internally and in a file. Once they close the inventory again their inventory is returned and deleted from the file. If the server crashes during play; the players' inventory is still stored in the file. When they rejoin it is returned correctly and then removed from the file.
File:
Code (YAML):
# This is a crash safety storage file for player inventories. # # Once a player starts playing a Pocket Game their inventory is stored internally and in this file. # The player is removed again once they are no longer playing. # The player's inventory will remain in this file and is not lost should the server unexpectedly crash during play for whatever reason. # This file is checked when a player joins. If the player is in the file the inventory is returned to the player. # # Do NOT edit this file manually unless you know exactly what you are doing.
PlayerInventories: #Example Player a0513513-a813-47fd-b825-7c727aa20dc0: rO0ABXBzcgAab3JnLmJ1a2tpdC51dGlsLmlvLldyYXBwZXLyUEfs8RJvBQIAAUwAA21hcHQAD0xqYXZhL3V0aWwvTWFwO3hwc3IANWNvbS5nb29nbGUuY29tbW9uLmNvbGxlY3QuSW1tdXRhYmxlTWFwJFNlcmlhbGl6ZWRGb3JtAAAAAAAAAAACAAJbAARrZXlzdAATW0xqYXZhL2xhbmcvT2JqZWN0O1sABnZhbHVlc3EAfgAEeHB1cgATW0xqYXZhLmxhbmcuT2JqZWN0O5DOWJ8QcylsAgAAeHAAAAAEdAACPT10AAR0eXBldAAGYW1vdW50dAAEbWV0YXVxAH4ABgAAAAR0AB5vcmcuYnVra2l0LmludmVudG9yeS5JdGVtU3RhY2t0AAtNT05TVEVSX0VHR3NyABFqYXZhLmxhbmcuSW50ZWdlchLioKT3gYc4AgABSQAFdmFsdWV4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHAAAABAc3EAfgAAc3EAfgADdXEAfgAGAAAAA3EAfgAIdAAJbWV0YS10eXBldAACaWR1cQB+AAYAAAADdAAISXRlbU1ldGF0AA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