Source:
@Override public MessageResponse sendMessage(IMessageRecipient recipient, String message) { MessageResponse messageResponse = recipient.onReceiveMessage(this.parent, message); switch (messageResponse) { case UNREACHABLE: sendMessage(tl("recentlyForeverAlone", recipient.getDisplayName())); break; case MESSAGES_IGNORED: sendMessage(tl("msgIgnore", recipient.getDisplayName())); break; case SENDER_IGNORED: break; case SUCCESS_BUT_AFK: if (((IUser) recipient).getAfkMessage() != null) { sendMessage(tl("userAFKWithMessage", recipient.getDisplayName(), ((IUser) recipient).getAfkMessage())); } else { sendMessage(tl("userAFK", recipient.getDisplayName())); } break; default: sendMessage(tl("msgFormat", tl("me"), recipient.getDisplayName(), message)); User senderUser = getUser(this); User recipientUser = getUser(recipient); if (senderUser != null && !senderUser.isAuthorized("essentials.chat.spy.exempt") && (recipientUser != null && !recipientUser.isAuthorized("essentials.chat.spy.exempt"))) { for (User onlineUser : ess.getOnlineUsers()) { if (onlineUser.isSocialSpyEnabled() && !onlineUser.equals(senderUser) && !onlineUser.equals(recipient)) { if (senderUser.isMuted() && ess.getSettings().getSocialSpyListenMutedPlayers()) { onlineUser.sendMessage(tl("socialMutedSpyPrefix") + tl("socialSpyMsgFormat", getDisplayName(), recipient.getDisplayName(), message)); } else { onlineUser.sendMessage(tl("socialSpyPrefix") + tl("socialSpyMsgFormat", getDisplayName(), recipient.getDisplayName(), message)); } } } } } if (messageResponse.isSuccess()) { setReplyRecipient(recipient); } return messageResponse; }

Target:
@Override public MessageResponse sendMessage(IMessageRecipient recipient, String message) { MessageResponse messageResponse = recipient.onReceiveMessage(this.parent, message); switch (messageResponse) { case UNREACHABLE: sendMessage(tl("recentlyForeverAlone", recipient.getDisplayName())); break; case MESSAGES_IGNORED: sendMessage(tl("msgIgnore", recipient.getDisplayName())); break; case SENDER_IGNORED: break; case SUCCESS_BUT_AFK: if (((IUser) recipient).getAfkMessage() != null) { sendMessage(tl("userAFKWithMessage", recipient.getDisplayName(), ((IUser) recipient).getAfkMessage())); } else { sendMessage(tl("userAFK", recipient.getDisplayName())); } default: sendMessage(tl("msgFormat", tl("me"), recipient.getDisplayName(), message)); User senderUser = getUser(this); User recipientUser = getUser(recipient); if (senderUser != null && !senderUser.isAuthorized("essentials.chat.spy.exempt") && (recipientUser != null && !recipientUser.isAuthorized("essentials.chat.spy.exempt"))) { for (User onlineUser : ess.getOnlineUsers()) { if (onlineUser.isSocialSpyEnabled() && !onlineUser.equals(senderUser) && !onlineUser.equals(recipient)) { if (senderUser.isMuted() && ess.getSettings().getSocialSpyListenMutedPlayers()) { onlineUser.sendMessage(tl("socialMutedSpyPrefix") + tl("socialSpyMsgFormat", getDisplayName(), recipient.getDisplayName(), message)); } else { onlineUser.sendMessage(tl("socialSpyPrefix") + tl("socialSpyMsgFormat", getDisplayName(), recipient.getDisplayName(), message)); } } } } } if (messageResponse.isSuccess()) { setReplyRecipient(recipient); } return messageResponse; }