nwesterhausen / valheim-discordconnector

A plugin to connect a Valheim server to a discord webhook.
https://discord-connector.valheim.games.nwest.one/
MIT License
27 stars 13 forks source link

Capture and display SteamID and IP? #191

Open brianmiller opened 1 year ago

brianmiller commented 1 year ago

Is it possible to send the steam id and IP for the user connected? This would be helpful during kicking/banning assessment.

nwesterhausen commented 1 year ago

I'm not sure that DiscordConnector see's the connecting player's IP address when it sees the join happen. But I will investigate.

brianmiller commented 1 year ago

I'm not sure that DiscordConnector see's the connecting player's IP address when it sees the join happen. But I will investigate.

Thanks for the reply and consideration. If I had to choose, the Steam ID is more important. Fantastic utility, we're using it for all of our public worlds now.

nwesterhausen commented 1 year ago

I have good news for you, the SteamID is already available to be sent with any of the player messages. If you edit the discordconnector-messages.cfg under '[Messages.Player]', any of those can have the "%PLAYER_ID%" added to show the SteamID.

Messages config reference

brianmiller commented 1 year ago

I have good news for you, the SteamID is already available to be sent with any of the player messages. If you edit the discordconnector-messages.cfg under '[Messages.Player]', any of those can have the "%PLAYER_ID%" added to show the SteamID.

Messages config reference

Instant smile on my face. Thank you--this is a huge help.

brianmiller commented 1 year ago

Any chance in getting the client's IP to appear?

nwesterhausen commented 1 year ago

I've checked over what's available to discord connector and there isn't an IP address for the connecting client exposed. I don't plan to add this feature; however, I'll accept a pull request that adds this feature.