Bedrock server commands, allow list and operators

Bedrock server commands for the console, the allow list, op and permission levels, cheats and the server.properties lines that matter, on a Torchlite server.

6 min readBy Torchlite teamUpdated

The Torchlite panel console running Minecraft Bedrock server commands
On this page

A Torchlite Bedrock server runs Mojang's official Bedrock Dedicated Server. You control it in two ways: with commands typed in the panel console, and with settings in the Startup page and in server.properties. This guide covers the commands you will actually use, the allow list, operators and permission levels, and which settings belong where, because a few of them are reset at every start.

If you are coming from Java Edition, most of it will look familiar, with a few differences: the list is called the allow list rather than the whitelist, and Bedrock has three permission levels instead of a single op flag. Java plugins and their commands do not exist here; Bedrock uses add-ons instead.

Where to type commands

Open your server at game.torchlite.host and choose Console in the side menu. Type a command in the field at the bottom and press Enter. Two rules:

  • No leading slash. In the console you type time set day, not /time set day.
  • Gamertags with spaces need double quotes, for example op "Blue Fox 22". Without quotes the server reads only the first word.

The console has full rights. Commands that need cheats for a player, such as give, work from the console even when cheats are off. Operators can also run game commands from inside Minecraft, with the / in front.

Useful commands

CommandWhat it does
allowlist on / allowlist offTurns the allow list on or off
allowlist add "Gamer Tag"Lets a player join while the allow list is on
allowlist remove "Gamer Tag"Removes a player from the allow list
allowlist listShows who is on the allow list
allowlist reloadReads allowlist.json again after you edit it
op "Gamer Tag" / deop "Gamer Tag"Gives or takes operator rights
permission listLists the current permission entries
permission reloadReads permissions.json again
kick "Gamer Tag" reasonRemoves a player from the server, with an optional reason
changesetting allow-cheats trueTurns cheats on until the next restart
changesetting difficulty hardChanges difficulty until the next restart
save hold / save query / save resumePauses saving for a safe copy, then resumes
stopSaves the world and stops the server

Normal game commands also work from the console, without the slash:

text
gamerule keepinventory true
time set day
weather clear
say Server restarts in 5 minutes
tp "Gamer Tag" 0 80 0
give "Gamer Tag" diamond 5

The allow list

The allow list decides who can join. While it is on, only the gamertags on the list get in; everyone else is refused.

On Torchlite the allow list is off on a new server, so anyone with your address and port can join. Mojang's own default is on, so older guides may tell you the opposite. For a server just for friends, turn it on:

  1. Add yourself and your friends first, so nobody is locked out:

    text
    allowlist add "Your Gamertag"
    allowlist add Steve
  2. Turn it on:

    text
    allowlist on
  3. Check the list with allowlist list.

Use the exact Xbox gamertag, the name the player shows in Minecraft. Remove someone with allowlist remove "Gamer Tag", and turn the list off again with allowlist off.

The list is stored in allowlist.json next to server.properties. Using the commands is safer than editing the file by hand. If you do edit it, run allowlist reload afterwards. After a restart, check that server.properties has allow-list=true if you want the list to stay on.

Operators and permission levels

Bedrock has three permission levels:

  • visitor: can look around but cannot build, break or use things.
  • member: a normal player. This is the default.
  • operator: can run commands, including kick, op and stop.

Making someone an operator

The easiest way is op while the player is online:

text
op "Gamer Tag"

op looks for the player on the server, so ask them to join first. deop "Gamer Tag" takes the rights away. Give operator only to people you trust with the whole world.

The default level for new players

default-player-permission-level in server.properties sets the level everyone gets when they join for the first time: visitor, member or operator. Keep it on member. Setting it to operator gives every stranger who finds your server full control. visitor is useful for a server where people should only look around.

permissions.json and XUIDs

Bedrock also keeps a permissions.json file. It lists players by XUID, the number Xbox uses for an account, not by gamertag. A permanent entry looks like this:

json
[
  { "permission": "operator", "xuid": "2535400000000000" }
]

The XUID of a player appears in the console when they connect. After you edit the file, run permission reload. If this sounds like more work than you need, it is: for most servers, op while the player is online is enough.

Cheats

Cheats allow game commands such as give, gamemode and tp for operators in the game. There are two ways to change them:

  • Permanently: set Cheats to true or false on the Startup page, then restart.
  • For now: run changesetting allow-cheats true in the console. This lasts until the next start, when the Startup value is written back.

changesetting difficulty hard works the same way. To keep a difficulty, set Difficulty on Startup.

server.properties: what to change and where

Torchlite writes some settings for you at every start. Change those on the Startup page:

Startup variableLine it overwritesValues
Server nameserver-nameAny name
Game modegamemodesurvival, creative, adventure
Difficultydifficultypeaceful, easy, normal, hard
Cheatsallow-cheatstrue, false
World namelevel-nameFolder name in worlds/
Bedrock version(not in the file)latest or a version such as 1.26.65.1

The network lines server-port, server-udp-ports, transport and enable-lan-visibility are also reset at every start. They keep your server on its own port and on Bedrock's NetherNet connection, so leave them alone.

Everything else you change in Files → server.properties, then restart:

LineWhat it does
max-playersMost players at once. Torchlite default 10
view-distanceHow far players see, in chunks. Torchlite sets 12 (Mojang's default is 32)
tick-distanceHow far around players the world is active, in chunks. Default 4
max-threadsCPU threads the server uses. Torchlite sets 2
allow-listtrue keeps the allow list on
online-modetrue means players need a Microsoft (Xbox) account. Keep it on
default-player-permission-levelvisitor, member or operator for new players. Default member
player-idle-timeoutMinutes before an idle player is kicked. Default 30
texturepack-requiredtrue makes players accept the server's resource packs
chat-restrictionLimits or turns off chat

Lower view-distance first if the server struggles; it has the biggest effect.

Safe saves and stopping

The world is written to disk while the server runs. For a copy you can trust while the server stays online, use the save commands in order:

  1. save hold asks the server to pause writing.
  2. save query tells you whether it is ready and lists the files to copy. Run it again until it says the data is ready.
  3. Copy or download the world folder from worlds/.
  4. save resume lets the server write again. Do not forget this step.

The simpler way is a panel backup, described in the backups guide, or stopping the server before you copy. stop in the console saves and shuts down cleanly, the same as Stop in the panel. Remember that a stopped free server stays stopped until you start it, and a running one stops when its renewal timer runs out.

Common problems

"Unknown command" or nothing happens

Remove the leading slash in the console. Check the spelling: Bedrock uses allowlist, while whitelist is the Java name. Java plugin commands do not exist on Bedrock.

op does nothing or cannot find the player

op needs the player to be online. Ask them to join, then run it again, with quotes if the gamertag has spaces. For a permanent entry without the player, use permissions.json with their XUID and permission reload.

A friend cannot join after turning on the allow list

The gamertag on the list must match exactly. Run allowlist list, fix the entry with allowlist remove and allowlist add, and use quotes around names with spaces.

My settings go back after a restart

You changed a line that Torchlite writes at every start. Server name, game mode, difficulty, cheats and world name belong on the Startup page. changesetting only lasts until the next start, and the network lines are always reset.

Cheats are on but players cannot use commands

Cheats let operators use game commands such as give and gamemode; a player on member still cannot. Make them an operator with op.

My edit to server.properties did nothing

The server reads the file only when it starts. Save in Files, then press Restart. Check that true and false are lowercase.

Stuck on a step?

Ask on the forum. Your question links back to this guide, so whoever answers knows where you are.

Ask about this guide

About the author

Torchlite team

The people who run Torchlite

We build and run the Torchlite panel and the nodes. Every guide is checked on our own servers before it goes up, and updated when the panel changes.

Found a mistake? Tell us on Discord

Related guides

All guides →