mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 02:19:05 +00:00
Port bug fix for tab completion and link pattern.
This commit is contained in:
parent
ccccf02d5e
commit
430209b0ec
@ -109,6 +109,6 @@ public class Ignore extends PlayerCommand {
|
|||||||
Collections.sort(completions);
|
Collections.sort(completions);
|
||||||
return completions;
|
return completions;
|
||||||
}
|
}
|
||||||
return null;
|
return super.tabComplete(sender, alias, args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -166,7 +166,7 @@ public class Message extends PlayerCommand {
|
|||||||
Collections.sort(completions);
|
Collections.sort(completions);
|
||||||
return completions;
|
return completions;
|
||||||
}
|
}
|
||||||
return null;
|
return super.tabComplete(sender, alias, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendBungeeCordMessage(VentureChatPlayer mcp, String command, String[] args) {
|
private void sendBungeeCordMessage(VentureChatPlayer mcp, String command, String[] args) {
|
||||||
|
@ -159,7 +159,7 @@ public class VentureChatFormatService {
|
|||||||
do {
|
do {
|
||||||
Pattern pattern = Pattern.compile(
|
Pattern pattern = Pattern.compile(
|
||||||
"([a-zA-Z0-9" + BUKKIT_COLOR_CODE_PREFIX + "\\-:/]+\\.[a-zA-Z/0-9" + BUKKIT_COLOR_CODE_PREFIX
|
"([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);
|
Matcher matcher = pattern.matcher(remaining);
|
||||||
if (matcher.find()) {
|
if (matcher.find()) {
|
||||||
indexLink = matcher.start();
|
indexLink = matcher.start();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user