mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-26 18:39:43 -05:00
Fix Version-Feature Tab-Completion
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user