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

config option to ignore any player admins #124

Open nwesterhausen opened 2 years ago

nwesterhausen commented 2 years ago

additional config option which ignores admin players. this supersedes the ignore and ignore regex

Azumatt — Today at 7:08 PM New way you should check admins is like this:

ZNet.instance.ListContainsId(ZNet.instance.m_adminList, peer.m_rpc.GetSocket().GetHostName())

peer.m_rpc.GetSocket().GetHostName() is already grabbed in ZNet patch