This plugin will allow you to save your inventory of each world before exiting it, each inventory will be divided for each world and there is no need to configure it, it will do everything by itself.
To install:
Download the plugin
Place the plugin in the "plugins" folder
Restart the server or load the plugin with PlugMan or similar