Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteIf you cannot place or edit a command block on a Minecraft Java server, check three things in this order: the server’s Java version and command-block setting, your operator level, and your game mode. Java 1.21.8 and older use enable-command-block=true in server.properties; Java 1.21.9 and newer use a gamerule instead. You also need operator level 2 or higher and Creative mode. The setting change for older versions requires a full server restart, while the newer gamerule takes effect immediately.
Playing with friends? Godlike.Host runs hosted Minecraft Java servers from 10 data-center locations, with free DDoS protection.
Start with the version: the fix changed in Java 1.21.9
Minecraft Java Edition moved command-block control out of server.properties in version 1.21.9. That means instructions written for an older server can be completely correct yet fail on a current one: adding a property to a 1.21.9-or-newer file will not enable command blocks, and trying a gamerule on an older server will not replace the missing property.
As an Amazon Associate I earn from qualifying purchases.
Recommended Free Tools
| Java server version | How command blocks are enabled | Does it require a restart? | Setting or command |
|---|---|---|---|
| 1.21.8 and older | Edit server.properties |
Yes. Stop and start the server fully. | enable-command-block=true |
| 1.21.9 and 1.21.10 | Set the gamerule from the console or in-game | No | /gamerule commandBlocksEnabled true |
| 1.21.11 and newer | Set the renamed gamerule from the console or in-game | No | /gamerule command_blocks_work true |
The rule was introduced in 1.21.9 (snapshot 25w35a) and renamed in 1.21.11 (snapshot 25w44a). If you are unsure which spelling your server accepts, use the spelling for the exact version reported by the server rather than copying a generic guide.
Fix Java 1.21.8 and older servers
1. Stop the server before editing its file
Shut the server down normally from its console or hosting control panel. Do not edit server.properties while the server is running. A running server can write its in-memory settings back to disk during a save or shutdown, overwriting your change.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
2. Set the property exactly
- Open the
server.propertiesfile belonging to the server you actually start. - Find the line
enable-command-block. If it is present, change its value totrue. If it is absent, add the line on its own:enable-command-block=true. - Do not put spaces around the equals sign. Save the file as plain text.
The Minecraft Wiki lists the default for this property as false, so an untouched file commonly leaves command blocks disabled.
3. Start the server completely
Launch the server again and join after it has finished starting. A command such as /reload is not a substitute for restarting: /reload re-reads datapacks and functions, not server.properties.
4. Test in the right conditions
Use Creative mode and an operator account with level 2 or higher. Try obtaining and placing a command block, then open its interface. If the interface still reports “Command Blocks Are Not Enabled on This Server,” verify that the edit was made to the correct server directory and that the server was stopped before saving.
Fix Java 1.21.9 and newer servers
Java 1.21.9 or 1.21.10
Run this from the server console:
gamerule commandBlocksEnabled true
When entering the command in the in-game chat, include the slash:
/gamerule commandBlocksEnabled true
Java 1.21.11 and later
The gamerule was renamed to command_blocks_work. Use:
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
gamerule command_blocks_work true
In chat, use:
/gamerule command_blocks_work true
The command applies immediately; no server restart is needed. A console normally expects the command without the leading slash, whereas in-game chat uses the slash.
Check the current value before changing it
Run the gamerule without a value to display its current state:
/gamerule command_blocks_work
For 1.21.9 and 1.21.10, substitute commandBlocksEnabled. This query is the safest way to resolve uncertainty about whether command blocks are currently enabled. The available evidence does not establish one universal default for the newer rule across every world-creation situation, so check the value instead of assuming it is true or false.
Make sure the player has the required permissions
Operator status is separate from the command-block setting
Enabling command blocks does not grant players permission to place or edit them. The player must be an operator. A quick test is an ordinary operator command such as:
/time set day
If that command is rejected, fix operator status before troubleshooting the block itself.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Use operator level 2 or higher
Placing and breaking command blocks, and editing their graphical interface, requires operator permission level 2 or higher. From the server console, grant the specific player level 2 with:
op playername 2
Replace playername with the exact in-game name. The op-permission-level property controls the level granted by the /op command; the Minecraft Wiki lists its default as 4. Some hosting guides recommend setting that property to 2 when a server wants ordinary operators to have command-block access without automatically granting the highest operator level. Change that policy only if it matches your server’s permissions plan.
Why an operator can still fail to run some commands from a block
Command blocks execute commands at operator level 2. They therefore cannot execute commands that require level 3 or level 4, including /op, /ban, and /stop. A block that places correctly can still fail when its command requires more authority than the block’s execution level. Test with a level-2-appropriate command before diagnosing the block as broken.
Switch to Creative mode before placing the block
Java servers require Creative mode to place command blocks. With sufficient operator permission, switch yourself with:
/gamemode creative
Then obtain the command block, place it, and open its interface. A player in Survival or another non-Creative mode can have the correct operator level and an enabled server yet still be unable to place the block. If you need to return afterward, use the appropriate /gamemode command for your normal mode.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Diagnose the exact symptom instead of changing everything
“Command Blocks Are Not Enabled on This Server”
This message appears when a command block is edited while command blocks are disabled. On 1.21.8 and older, stop the server, correct enable-command-block=true, and restart. On 1.21.9 and 1.21.10, set commandBlocksEnabled to true. On 1.21.11 and newer, set command_blocks_work to true. Query the gamerule afterward to confirm the value.
The block is available, but the player cannot place it
Check Creative mode first, then operator level. Both conditions are required for placement. An enabled setting alone is not a permission grant.
The player can use operator commands but cannot edit the block
Confirm that the operator’s level is at least 2 and that the account being tested is the one you granted. A command such as /time set day confirms that the account is an operator, but it does not by itself prove the account has the level needed for command-block editing.
Free tools Windows power users keep installed
One-click scans. No signup required.
The block places, but its command does nothing
First test whether the command itself needs level 3 or 4. A command block always runs at level 2, so it cannot perform high-level administrative actions such as /op, /ban, or /stop. If the command is within level 2, inspect the command’s own syntax and its redstone or execution conditions separately; enabling command blocks only permits the block to operate and does not make every command valid.
The change worked once, then disappeared
For an older server, check that you edited the active server’s file, not a backup, test instance, or another world directory. Also confirm the server was stopped before editing. A change made while the process is running can be overwritten when the server saves. Remember that /reload cannot apply a changed server.properties value.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
A reliable troubleshooting order
Use this sequence so each test isolates one possible cause:
- Identify the exact Java version reported by the server.
- Apply only the matching enablement method from the version table.
- For 1.21.8 and older, stop the server before editing and perform a full restart. For 1.21.9 and newer, query the gamerule to verify it is true.
- Confirm operator access with
/time set day. - Confirm the operator level is 2 or higher; use
op playername 2from the console when necessary. - Switch the testing player to Creative with
/gamemode creative. - Place a command block and open its interface.
- If it places but does not execute, test a simple level-2 command before trying administrative commands.
- If the old-version error remains, recheck the file name, the absence of spaces in
enable-command-block=true, the save operation, and the server directory you edited.
Security: enabling command blocks changes your server’s risk
Command blocks can run powerful commands. On a private test world, that may be exactly what you want; on a public server, it creates an additional path to major damage. Any operator with the necessary access, or anyone who can place blocks in a loaded region, may be able to use a command block to grant operator status, give items, or wipe the world.
- Restrict who receives operator status and avoid granting more permission than needed.
- Keep command-block building areas inaccessible to ordinary players.
- Use a region-protection plugin on a public server to prevent unauthorized placement or editing in sensitive areas.
- Review who can enter or build in loaded regions where command blocks are present.
- Test administrative commands in a disposable world before putting them on a live server.
The permission level of the block itself is not a complete security boundary: level-2 execution still includes commands that can affect players and the world. Treat every player who can place or alter a command block as someone who may be able to trigger its command.
What about Minecraft Bedrock Edition?
This guide covers Minecraft Java Edition servers. Bedrock uses different controls, commonly presented as “Command Blocks Enabled” or an “Allow Cheats” setting, and the Java property and gamerule names above should not be copied into a Bedrock configuration. Because the exact Bedrock server software and version determine the available controls, use the settings exposed by that Bedrock server rather than applying these Java steps.
Quick checklist
- Is the server Java 1.21.8 or older, 1.21.9–1.21.10, or 1.21.11 and newer?
- For 1.21.8 and older, does the active
server.propertiescontainenable-command-block=truewith no spaces around the equals sign? - Was the older server stopped before the file was edited and fully restarted afterward?
- For 1.21.9 and 1.21.10, is
commandBlocksEnabledtrue? - For 1.21.11 and newer, is
command_blocks_worktrue? - Does querying the gamerule show the state you expect?
- Is the player an operator at level 2 or higher?
- Is the player in Creative mode?
- If execution fails, is the command within operator level 2?
- Are building access and region protection configured safely for the server’s audience?
The practical answer
Find the server version first. Use enable-command-block=true plus a complete restart on Java 1.21.8 and older. Use the gamerule on newer releases—commandBlocksEnabled on 1.21.9–1.21.10 and command_blocks_work on 1.21.11 and later—with no restart. Then test with an operator at level 2 or higher in Creative mode. If all three conditions are met, the remaining failure is usually the command’s own permission level or syntax rather than the server’s ability to place command blocks.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problems




