Minecraft – How to de-OP players by using command blocks

minecraft-commandsminecraft-java-edition

How do I de-OP players by using Command Blocks instead of chat commands?

The chat commands are easier, but I want to know how do it using a Command Block, I also would like to know if the /op command will work.

Best Answer

You cannot.

There are various commands that are unavailable, probably due to the ability for abuse (such as reopping yourself after having your admin privileges revoked).

This list currently includes: ban, banlist, ban-ip, debug, deop, kick, op, pardon, pardon-ip, publish, save-all, save-off, save-on, stop and whitelist.