sprintf(buffer, "Message sent to %s.", toPlayer->getName().c_str());