1
0

add version check and notify user

This commit is contained in:
Lee
2024-03-30 12:24:12 +00:00
parent e3bd0b7c15
commit 7c5557abd2
7 changed files with 47 additions and 2 deletions

View File

@ -31,7 +31,7 @@ public class ChatManager extends Manager {
private final HashMap<Account, String> lastMessage = new HashMap<>();
private final Pattern domainPattern = Pattern.compile("^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\\.)+[A-Za-z]{2,8}$");
private final Pattern ipPattern = Pattern.compile("\\b(?:\\d{1,3}\\.){1,3}\\d{1,3}\\b");
private final Pattern ipPattern = Pattern.compile("\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b");
@EventHandler
public void onChat(AsyncChatEvent event) {