Skip to content

Commit

Permalink
LEGACY: Added InvalidUUID AntiBot (CCBlueX#2742)
Browse files Browse the repository at this point in the history
  • Loading branch information
EclipsesDev committed Apr 8, 2024
1 parent d1d19ac commit 85552a0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ object AntiBot : Module("AntiBot", ModuleCategory.MISC) {
private val tabMode by ListValue("TabMode", arrayOf("Equals", "Contains"), "Contains") { tab }

private val entityID by BoolValue("EntityID", true)
private val invalidUUID by BoolValue("InvalidUUID", true)
private val color by BoolValue("Color", false)

private val livingTime by BoolValue("LivingTime", false)
Expand Down Expand Up @@ -118,6 +119,10 @@ object AntiBot : Module("AntiBot", ModuleCategory.MISC) {
return true
}

if (invalidUUID && mc.netHandler.getPlayerInfo(entity.uniqueID) == null) {
return true
}

if (needHit && entity.entityId !in hitList)
return true

Expand Down

0 comments on commit 85552a0

Please sign in to comment.