# How to Enable Cheats on Your Minecraft Bedrock Server (/docs/minecraft-bedrock/cheats-setup)



import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { Step, Steps } from 'fumadocs-ui/components/steps';

Cheats must be enabled before OP players can use gameplay-altering commands like `/give`, `/tp`, `/gamemode`, `/effect`, `/summon`, and `/gamerule`. Without cheats, even operators are limited to basic server management commands.

> **Warning:** Enabling cheats **permanently disables achievements** for the world. This cannot be reversed. If you need achievements, consider using a second world for admin testing.

Enable Cheats [#enable-cheats]

<Tabs items={['Via Startup (Recommended)', 'Via server.properties']}>
  <Tab value="Via Startup (Recommended)">
    <Steps>
      <Step>
        Open Startup [#open-startup]

        In the [XGamingServer Panel](https://panel.xgamingserver.com), click **Startup** in the sidebar.

        {/* Screenshot needed: Startup tab showing allow-cheats toggle */}
      </Step>

      <Step>
        Enable the setting [#enable-the-setting]

        Find **Allow Cheats** and set it to `true` (or toggle it on).
      </Step>

      <Step>
        Restart [#restart]

        Restart from **Console**.
      </Step>
    </Steps>
  </Tab>

  <Tab value="Via server.properties">
    <Steps>
      <Step>
        Open the file [#open-the-file]

        Click **Files** in the sidebar and open `server.properties`.
      </Step>

      <Step>
        Change the value [#change-the-value]

        Find and set:

        ```properties
        allow-cheats=true
        ```
      </Step>

      <Step>
        Save and restart [#save-and-restart]

        Click **Save Content** and restart from **Console**.
      </Step>
    </Steps>
  </Tab>
</Tabs>

Commands That Require Cheats [#commands-that-require-cheats]

These commands only work when `allow-cheats=true`:

| Command                             | What it does                 |
| ----------------------------------- | ---------------------------- |
| `/gamemode creative`                | Change a player's game mode  |
| `/give @p diamond 64`               | Give items to players        |
| `/tp @p 100 64 200`                 | Teleport players             |
| `/effect @p speed 60 2`             | Apply potion effects         |
| `/summon creeper`                   | Spawn entities               |
| `/time set day`                     | Change the time              |
| `/weather clear`                    | Change the weather           |
| `/gamerule keepInventory true`      | Modify game rules            |
| `/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 stone` | Place/replace blocks in bulk |
| `/setblock ~ ~-1 ~ gold_block`      | Place a single block         |

Commands That Work Without Cheats [#commands-that-work-without-cheats]

These always work for operators regardless of the cheats setting:

| Command         | What it does          |
| --------------- | --------------------- |
| `/list`         | Show online players   |
| `/kick`         | Kick a player         |
| `/ban`          | Ban a player          |
| `/op` / `/deop` | Grant/revoke operator |
| `/allowlist`    | Manage the allowlist  |
| `/save`         | Force a world save    |
| `/stop`         | Shut down the server  |

Related Guides [#related-guides]

* [Give OP Permissions](/docs/minecraft-bedrock/op-setup)
* [Game Rules Reference](/docs/minecraft-bedrock/game-rules)
* [Server Properties Reference](/docs/minecraft-bedrock/server-properties)
