isPlayer

abstract fun isPlayer(): Boolean

Checks if the sender is a player entity.

If this returns true, asPlayer is guaranteed to return non-null.

Return

true if the sender is a player