mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-12-02 21:39:45 -05:00
Check Load
This commit is contained in:
1 parent
111e4778fe
commit
06c6123fbe
1 file changed
+2
-1
@@ -49,7 +49,7 @@ public class LegacyPacketHandler implements PacketHandler {
|
||||
field.setAccessible(true);
|
||||
Object result = field.get(packetObj);
|
||||
|
||||
if (!(result instanceof String[]) || !BukkitLoader.isLoaded()) continue;
|
||||
if (!(result instanceof String[])) continue;
|
||||
List<String> newResultList = new ArrayList<>();
|
||||
String[] tR = (String[]) result;
|
||||
|
||||
@@ -57,6 +57,7 @@ public class LegacyPacketHandler implements PacketHandler {
|
||||
|
||||
if(spaces == 0) {
|
||||
for (String s : tR) {
|
||||
if(!BukkitLoader.isLoaded()) continue;
|
||||
tempName = s.replaceFirst("/", "");
|
||||
|
||||
if (!Storage.Blacklist.isBlocked(player, tempName, !Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED))
|
||||
|
||||
Reference in new issue
Block a user