The code actually didn't work for only one reason: there's a bot relaying messages from another channel, the relayed message are of the form
nickname message, the matchtext of the on text event is expecting
%c $+ player as the first word, which is obviously not possible in that case, he wanted the code to work in both situation.
You clearly missed that part and I was pointing it out