Added ability to exclude specific block types in blacklist (implements #444)

This commit is contained in:
Intelli 2024-01-04 17:56:30 -07:00
parent 172c6440db
commit 7c61a33571
2 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,10 @@ public class BlockBreakLogger {
return;
}
if (ConfigHandler.blacklist.get(checkType.getKey().toString()) != null) {
return;
}
if (!user.startsWith("#")) {
CacheHandler.spreadCache.remove(location);
}

View File

@ -55,6 +55,10 @@ public class BlockPlaceLogger {
return;
}
if (ConfigHandler.blacklist.get(type.getKey().toString()) != null) {
return;
}
int x = block.getX();
int y = block.getY();
int z = block.getZ();