Your code said

on *:text:!player*:#:{

This means that it will only work if the type !player name.
It won't work if they type "Hello !player name."
Or anything else before !player.

What do you want people to type to find out their player status?