Deauthorize an op from using /kill and /tp commands
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.
Pictures about "Deauthorize an op from using /kill and /tp commands"



Can you undo a kill command?
You can't. Unless you have a recent backup to restore, this action is permanent.How do you remove op from a player in Minecraft?
How to un-OP someone on your Minecraft serverHow do I get rid of op?
To remove op from a player, use the ingame command: /deop (username)How do I undo a TP command?
It sounds like what you are asking is how do you reverse a TP command. As far as I am aware, once a command executes, you cannot cancel its action. The only way your son will get back to where is started is if you TP back to the coordinates, or if he can manage to find where he was by walking around.Why Sudo Is The Best Command in Minecraft
More answers regarding deauthorize an op from using /kill and /tp commands
Answer 2
Mystery's answer is correct. I would like to add that this is possible in Bukkit though. Use a permissions manager to do so. I personally use McMyAdmin, since it also adds an interface for the less tech savvy server admins, but you can also use PermissionsEx. The plugin Essentials should give you the opportunity to disable command blocks for a single player.
Note: you did not specify a version. Some of these plugins may not work and require alternatives depending on your version.
Answer 3
Teleport go your friend, /kill him then break the command blocks. I don't play realms so I don't know much about it
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Sora Shimazaki, Vlada Karpovich, Ivan Samkov, Vlada Karpovich
