I wanted to make it easy for the server owner or whatever to find the playername they were looking for in the config. In case there would be like 100 people joining I imagine it would be hard to find by just the uuid
Fair enough. Just out of curiosity. How come you wanted this list of players who joined? As Sponge allows you to get the User data of players who have joined before?
ah my bad, I had remove alot of " " that got copied when you copy from IntelliJ so I accidentally removed it in the post. It’s there in the code I just made a mistake. But thanks for noticing!
Good news! I found out how to do it / what I did wrong. I hadn’t set the player variable to anything, so all i did was change the main class method to send a player variable with the value event.getTargetEntity()