TransWikia.com

How to execute a command on everyone except me?

Arqade Asked on July 6, 2021

For a game I have been making, I want to (before I use @p) make the /execute command find everybody else except me. I tried:

/execute @a[type=!Player,name=username] /myCommand

But it doesn’t work! Can anybody help?

Note: [username] is to be replaced with the user’s Minecraft name.

One Answer

You'll want to use the NOT operator with the name parameter:

/execute @a[name=!username] ~ ~ ~ /say Test

As well, the type parameter is not used with the @a selector.

Answered by Skylinerw on July 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP