This question already has an answer here:
I'm running a vanilla minecraft server, and I have some custom commands set up for staff using scoreboard triggers. I want to set up some sort of trigger command that can kick and one that can ban (this one just for admins).
I understand that /kick and /ban won't work from command blocks, though. Is there a workaround for this (especially the kick command) that I could implement for mods and admins?