How can you turn on or off the cheats after you make an offline server?My brother did something in settings but I can't find it.
-
if any of the answers worked, press the check mark near the answer to mark it as it helped you.– RokeJul 27, 2016 at 14:08
-
@collop1 accept the answer that actually helps.– RyugaGodJun 4, 2021 at 5:50
4 Answers
On a multiplayer server:
To turn on cheats:
- Type
op <Your username>
in the console. - Done.
To turn off cheats:
- Type
/deop <Your username>
- Done.
On a singleplayer world:
To turn on cheats:
Using the built-in LAN server:
- Pause the game.
- Click on
Open to LAN
. - In the options, change Allow Cheats: false to true (click on it).
- Open the server.
Changing your save file:
- Close your world.
- Using NBTEdit, open your save file (
%AppData%/.minecraft/saves/<World Name>/save.dat
) - Change the NBT node
AllowCommands
from0
to1
. - Save and reopen the world.
To turn off cheats:
Using the built-in LAN server:
Note: This only works on players who connect to this world, not you.
- Pause the game.
- Click on
Open to LAN
. - In the options, change Allow Cheats: true to false (click on it, if it already displays Allow Cheats: false, obviously don't click).
- Open the server.
Changing your save file:
- Close your world.
- Using NBTEdit, open your save file (
%AppData%/.minecraft/saves/<World Name>/save.dat
) - Change the NBT node
AllowCommands
from1
to0
. - Save and reopen the world.
-
Wow, thanks. Shout out to all the people telling me this wasn't possibly. Let alone that simple! Apr 2, 2018 at 20:02
-
Then what is
op-permission-level
inserver.properties
and how does it work?– NeilGAug 13, 2021 at 12:14
You can simply deop yourself. /deop {PlayerName}
and boom, no more commands like /gamemode 1
-
-
Your profile name, as in the name in the launcher (Hello, TheEnderCrafter9) as an example– RokeJul 28, 2016 at 12:11
-
If you're wondering how to make it so that no one can use any commands, then...
- Make the map open to LAN
- Turn cheats to "Off"
- End the LAN server and you won't be able to use cheats.
This works the other way around if you wish to turn the cheats back on.
For Permanent allow command without LAN MODE use this:
NTB EXPLORER for change config on the world.
Next, open the program and go to
C:\Users\ *"MY USER"* \AppData\Roaming\.minecraft\saves
Select the world folder and in the file "level.dat" search "AllowCommands" and change 0 to 1 (0 = false, 1 = true)
Make this change with minecraft close.