Fix Version-Feature Tab-Completion

This commit is contained in:
RayzsYT committed 2024-07-11 01:26:52 +02:00
1 parent 5ae139add3
commit 0e67f7d638
2 files changed
+6 -3

No files matched your search

@@ -185,9 +185,10 @@ public class BungeePacketAnalyzer {
if(spaces > 0) playerInput = split[0];
}
if(!playerInput.equals("/"))
if(!playerInput.equals("/")) {
cancelsBeforeHand = Storage.Blacklist.isBlocked(player, StringUtils.replaceFirst(playerInput, "/", ""), !Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED, server);
if(!cancelsBeforeHand) cancelsBeforeHand = Storage.ConfigSections.Settings.CUSTOM_VERSION.isCommand(StringUtils.replaceFirst(playerInput, "/", ""));
}
final String cursor = playerInput;
if(cursor.startsWith("/")) {
if(spaces == 0) {
@@ -139,8 +139,10 @@ public class VelocityPacketAnalyzer {
if(spaces > 0) playerInput = split[0];
}
if(!playerInput.equals("/"))
if(!playerInput.equals("/")) {
cancelsBeforeHand = Storage.Blacklist.isBlocked(player, StringUtils.replaceFirst(playerInput, "/", ""), !Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED, server);
if(!cancelsBeforeHand) cancelsBeforeHand = Storage.ConfigSections.Settings.CUSTOM_VERSION.isCommand(StringUtils.replaceFirst(playerInput, "/", ""));
}
final String cursor = playerInput;