Marriage Master

Marriage Master

4M Downloads

[Suggestion] Players' names in notifications

Srborjaa opened this issue ยท 6 comments

commented

Hi there!
It could be a good idea to show the nick of the partner that connects and disconnects. An example could be:

PartnerNowOnline: Your partner (NickOfPartner) is now online.
PartnerNowOffline: Your partner (NickOfPartner) is now offline.

Thanks!

commented

You can change that in the language file.
Just change it like this:

      PartnerNowOnline: "[\"\",{\"text\":\"Your partner {Name} is now online.\",\"color\":\"green\"}]"
      PartnerNowOffline: "[\"\",{\"text\":\"Your partner {Name} is now offline.\",\"color\":\"gray\"}]"

or this:

      PartnerNowOnline: "[{\"text\":\"Your partner \",\"color\":\"green\"},{\"text\":\"{DisplayName}\"},{\"text\":\" is now online.\"}]"
      PartnerNowOffline: "[{\"text\":\"Your partner \",\"color\":\"gray\"},{\"text\":\"{DisplayName}\"},{\"text\":\" is now offline.\"}]"

I probably should add a comment to the language file for the placeholders.

commented

Thanks. Another issue that I have is that the placeholder only shows one nick, instead of showing all names, separated by commas.

https://i.gyazo.com/ecfdf59dd17b7505da21ab3e45813dc0.png

commented

You are using the %marriagemaster_PartnerList% or %marriagemaster_PartnerDisplayNameList% placeholder?

commented

Oh, I didn't see them in the wiki.

Thanks and sorry for the inconveniences.

commented

Excuse me, is this already configured?

  1. PartnerNowOnline: "[{"text":"Your partner ","color":"green"},{"text":"{DisplayName}"},{"text":" is now online."}]"
  2.   PartnerNowOffline: "[{\"text\":\"Your partner \",\"color\":\"gray\"},{\"text\":\"{DisplayName}\"},{\"text\":\" is now offline.\"}]"
    
commented

Excuse me, is this already configured?

1. PartnerNowOnline: "[{"text":"Your partner ","color":"green"},{"text":"{DisplayName}"},{"text":" is now online."}]"

2. ```
     PartnerNowOffline: "[{\"text\":\"Your partner \",\"color\":\"gray\"},{\"text\":\"{DisplayName}\"},{\"text\":\" is now offline.\"}]"
   ```

This has been possible since version 2.0. You just have to change your language file. I will not make it the default since most servers are not allowing more than one partner.