pkfln / mta-discord-rpc

External MTA Discord Rich Presence Manager
MIT License
14 stars 36 forks source link

Doesn't work at all when server changes your nick #24

Open Fernando-A-Rocha opened 2 years ago

Fernando-A-Rocha commented 2 years ago

According to the README:

The status gets set to "Idle", even though I'm still connected to the server This often happens on servers which change your MTA:SA nickname (for instance, when you login to a server with a custom account system). Make sure the nickname you've set in the MTA:SA settings is equal to the one you have on the server you're connected to.

Many servers change your nick, notably servers which an have accounts/characters system (an important percentage of active MTA servers).

Is there any way you can fix the app so it works with nick changes?

pcislocked commented 2 years ago

FRP doesnt change my nick at all, for example, but it still gets stuck at Idle

pkfln commented 1 year ago

Unfortunately, this isn't possible with the current implementation, as it identifies the player by name. To get around this, you would also have to build a server-side implementation, which I tried to avoid. If you have an idea or a better approach, let me know.