[Feature] Added new property 'socialSpyMsgFormat'

This feature allows the user to alter the format in which a socialSpy direct messages is seen.
This commit is contained in:
Azewilous 2017-08-11 09:46:50 -04:00 committed by Ali Moghnieh
parent 703186e931
commit a8d9139b6c
No known key found for this signature in database
GPG key ID: F09D3A1BAF2E6D70
25 changed files with 26 additions and 2 deletions

View file

@ -97,9 +97,9 @@ public class SimpleMessageRecipient implements IMessageRecipient {
&& !onlineUser.equals(senderUser)
&& !onlineUser.equals(recipient)) {
if (senderUser.isMuted() && ess.getSettings().getSocialSpyListenMutedPlayers()) {
onlineUser.sendMessage(tl("socialMutedSpyPrefix") + tl("msgFormat", getDisplayName(), recipient.getDisplayName(), message));
onlineUser.sendMessage(tl("socialMutedSpyPrefix") + tl("socialSpyMsgFormat", getDisplayName(), recipient.getDisplayName(), message));
} else {
onlineUser.sendMessage(tl("socialSpyPrefix") + tl("msgFormat", getDisplayName(), recipient.getDisplayName(), message));
onlineUser.sendMessage(tl("socialSpyPrefix") + tl("socialSpyMsgFormat", getDisplayName(), recipient.getDisplayName(), message));
}
}
}