PlayerWarn is a client-side Fabric mod that notifies you with a chat message and sound when a player enters your render distance, with an ignore list configurable via /playeralert.