Minecraft – Deauthorize an op from using /kill and /tp commands

minecraft-commandsminecraft-java-edition

I went on my realm and my friend was trolling me with /kill in command blocks and chat. He also kept teleporting to me so his head was inside mine, so I couldn't break his command blocks.

How can I stop him (without taking away his op)? Is it possible?

Best Answer

In the standard Minecraft, the only thing you can do, is to de-op him. You can't limit the commands, a user can execute otherwise. But the commandblocks which he already placed would still be a executed. You can break them by standing on them and using the following command: /setblock ~ ~-1~ air 0. This command deletes the block below your feet.