Port bug fix for tab completion and link pattern.

This commit is contained in:
Aust1n46 2022-04-03 15:47:38 -05:00
parent ccccf02d5e
commit 430209b0ec
3 changed files with 3 additions and 3 deletions

View File

@ -109,6 +109,6 @@ public class Ignore extends PlayerCommand {
Collections.sort(completions);
return completions;
}
return null;
return super.tabComplete(sender, alias, args);
}
}

View File

@ -166,7 +166,7 @@ public class Message extends PlayerCommand {
Collections.sort(completions);
return completions;
}
return null;
return super.tabComplete(sender, alias, args);
}
private void sendBungeeCordMessage(VentureChatPlayer mcp, String command, String[] args) {

View File

@ -159,7 +159,7 @@ public class VentureChatFormatService {
do {
Pattern pattern = Pattern.compile(
"([a-zA-Z0-9" + BUKKIT_COLOR_CODE_PREFIX + "\\-:/]+\\.[a-zA-Z/0-9" + BUKKIT_COLOR_CODE_PREFIX
+ "\\-:_#]+(\\.[a-zA-Z/0-9." + BUKKIT_COLOR_CODE_PREFIX + "\\-:#\\?\\+=_]+)?)");
+ "\\-:_#]+(\\.[a-zA-Z/0-9." + BUKKIT_COLOR_CODE_PREFIX + "\\-:;,#\\?\\+=_]+)?)");
Matcher matcher = pattern.matcher(remaining);
if (matcher.find()) {
indexLink = matcher.start();