Don't forget about reply

This commit is contained in:
destro174
2021-06-23 21:44:04 +02:00
parent b50e773536
commit 1e3095d396
4 changed files with 13 additions and 10 deletions
@@ -37,10 +37,7 @@ public class ChatHandler {
public void privateMessage(Player player, String target, String message) {
ChatUser user = ChatUserManager.getChatUser(player.getUniqueId());
Component senderName = player.displayName();
String prefix = user.getPrefix();
user.setReplyTarget(target);
message = RegexManager.replaceText(message); // todo a better way for this
if(message == null) return; // the message was blocked