# Enabling Keep Inventory

### Method 1: Enable Keep Inventory Using In-Game Commands

#### Step 1: Use the Game Rule Command

1. Ensure you are logged into the game with operator permissions. *(Note: Operator permissions are required to use this command.)*
2. Open the in-game chat by pressing the `T` key.
3. Type the following command: ```
    /gamerule keepInventory true
    
    ```
    
    This command enables the Keep Inventory rule for all players on the server.

<p class="callout info">In some cases, you may need to run the command separately while in each dimension (Overworld, Nether, and End).</p>

#### Step 2: Verify the Change

1. Test the change by dying in-game.
2. Ensure your items and experience levels are still with you after respawning.

---

### Method 2: Enable Keep Inventory Using the Server Console

#### Step 1: Run the Command in the Console

1. Open the **Ridgeline Servers Control Panel** at [https://panel.ridgelineservers.com/](https://panel.ridgelineservers.com/).
2. Navigate to the **Console** tab.
3. Enter the following command and press `Enter`: ```
    gamerule keepInventory true
    
    ```

#### Step 2: Verify the Change

Test the change by dying in-game to ensure the Keep Inventory rule is working as intended.

<p class="callout info">In some cases, you may need to run the command separately for each dimension (Overworld, Nether, and End). Use the below commands in the server console.</p>

```
execute in minecraft:overworld run gamerule keepInventory true
execute in minecraft:the_nether run gamerule keepInventory true
execute in minecraft:the_end run gamerule keepInventory true

```

This ensures the Keep Inventory rule applies globally across all dimensions.

---

**Additional Help**  
If you encounter any issues or need further assistance, open a support ticket via the [Billing Area](https://billing.ridgelineservers.com/tickets). Our support team is ready to assist you.