This plugin provides a simple config file where you can define death causes that you'd like players to keep their inventory. For example if you set void to true, whenever a player dies to their void they will keep their inventory.
Note: Gamerule keep inventory does not need to be true, if it is the player's inventory will be kept nomatter what