onlyPlayers

public final Unit onlyPlayers()

Adds a requirement to the command syntax that only allows players to execute the command.

This is a shorthand for requires(Conditions.playerOnly).