[Suggestion] Players' names in notifications
Srborjaa opened this issue ยท 6 comments
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!
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.
Thanks. Another issue that I have is that the placeholder only shows one nick, instead of showing all names, separated by commas.
You are using the %marriagemaster_PartnerList%
or %marriagemaster_PartnerDisplayNameList%
placeholder?
Excuse me, is this already configured?
- PartnerNowOnline: "[{"text":"Your partner ","color":"green"},{"text":"{DisplayName}"},{"text":" is now online."}]"
-
PartnerNowOffline: "[{\"text\":\"Your partner \",\"color\":\"gray\"},{\"text\":\"{DisplayName}\"},{\"text\":\" is now offline.\"}]"
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.