World Utility - C00kier/CookiersLib GitHub Wiki
Utility class for checking and interacting with game rules in a player's world context.
Check if Keep Inventory rule is enabled on players world
Checks whether the keepInventory game rule is enabled in the player's current world.
isKeepInventoryEnabledOnPlayersWorld(Player player)
Parameters:
player— the player whose world to check
Returns:
trueif keepInventory is enabled,falseif disabled or not defined