1

I'm wondering if it is possible to make a sword (or other weapon or tool) that bans the player being hit from the server permanently.

I tried searching it on Google, with a few different phrases, but to no avail. I found nothing. It seems no one else in the history of ever wants to know.

Is there a chain of command blocks I could write, or some mod I could install for my server that would give this functionality?

5

1 Answer 1

5

No

The /ban command, which would be used to ban people on a server, cannot be used in command blocks or any other means of automatically running commands.

You can, however, use command blocks to emulate the effect of banning a player, see How can I block people from my Minecraft world? for details.

2
  • Can the Ban command be used by mods?
    – Nzall
    Aug 2, 2019 at 10:35
  • 1
    Presumably one could write a mod to do this, however if the question were asking for a mod if would be off-topic as a software recommendation, so I answered vanilla-only.
    – pppery
    Aug 2, 2019 at 14:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .