Mojira Archive
MCPE-158042

/testfor command cannot target spectators

Target selectors can use the "m" selector argument to limit selection by game mode, but there is no value to select only players in Spectator mode.

To Reproduce: Run the following command:

 /testfor @a[m=spectator] 

Expected result: List of spectators were shown
Observed: The error "Game mode 'spectator' is invalid' was shown instead

Fixed

FrostIce482

2022-06-23, 11:46 AM

2022-09-20, 08:15 PM

2022-09-20, 08:15 PM

4

1

Confirmed

811324

selector, selector-argument, target-selector, testfor

1.19.20.22 Preview - 1.19.21 Hotfix1.19.20.22 Preview, 1.19.10.23 Preview, 1.19.0, 1.19.10, 1.19.20.24 Preview, 1.19.11 Hotfix, 1.19.21 Hotfix

1.19.30.20 Preview, 1.19.30