I’m afraid I don’t really understand the question though I’ve tried. First you mention that you want to send a class but then your example is sending an object of type Player… which cannot possibly be a Class.
Explain what you are really trying to do because I suspect there is a Java-level misunderstanding somewhere.
yes, it was a misunderstanding. In fact I want to send an instance of a class. I just didn’t know the right vocabulary. My solution is now to make a player_message and access it functions via a cast from the abstract message to player_message.