I just skimmed the code, but it sounds like you just want to have different types of messages? Why not just store them all in the same array?
PHP Code:
player.client.messages = {
// {message, category}
{"Message one!", "mass"},
{"Message two!", "tell"},
{"Message three!", "guild"} // etc
};
If you keep them all in the same array (use a multi-dimensional array so you can store multiple attributes for each message), you don't have to worry about sorting them later on, plus you keep maintaining the code a lot easier (for example, adding a new message type is a cinch).
(I'm still not really sure why you're not just sending triggers and insist on using arrays)