As mentioned here already, this is available in Bedrock edition. It's a very useful feature and I was shocked to find it was not already in Java. this is another Parity feature
I don't understand why this isn't already available on servers. There is such a wide diversity of players on servers. It's essential that server owners have access to features like this.