use player name instead of provided, for correct casing

This commit is contained in:
Spencer 2018-05-18 12:16:28 -04:00 committed by Alexander Meech
parent b45146cca4
commit 75433e64df

View File

@ -612,7 +612,7 @@ public class MessageManager extends MiniClientPlugin<ClientMessage>
else
{
if (_preferences.get(to).isActive(Preference.FRIEND_MESSAGES_ONLY)) {
sender.sendMessage(F.main(getName(), F.name(target) + " only allows messages from friends."));
sender.sendMessage(F.main(getName(), F.name(to.getName()) + " only allows messages from friends."));
return;
}