the temp.pl in my original post refers to the object parameter thrown in
PHP Code:
function onRemotePlayerChats(temp.obj, temp.text)
I personally use pl as a shorthand to indicate that it is a player object I am dealing with, so I can keep track of what I am attempting to manipulate.
addChat was then added with two parameters, both strings, to indicate the sender's nickname, and sender's text. That function was created to avoid having to copy and paste virtually the same execution within both functions, and can be made public so it can be called elsewhere should you want to add messages from the server or something.