Check Load

This commit is contained in:
RayzsYT committed 2024-05-26 03:51:44 +02:00
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))