Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ public class KillAura extends Module {
.build()
);

private final Setting<Boolean> ignoreCreative = sgTargeting.add(new BoolSetting.Builder()
.name("ignore-creative")
.description("Whether or not to attack players with creative mode.")
.defaultValue(false)
.build()
);

private final Setting<Boolean> ignoreNamed = sgTargeting.add(new BoolSetting.Builder()
.name("ignore-named")
.description("Whether or not to attack mobs with a name.")
Expand Down Expand Up @@ -408,7 +415,7 @@ private boolean entityCheck(Entity entity) {
if (entity instanceof WolfEntity wolf && !wolf.isAttacking()) return false;
}
if (entity instanceof PlayerEntity player) {
if (player.isCreative()) return false;
if (!ignoreCreative.get() && player.isCreative()) return false;
if (!Friends.get().shouldAttack(player)) return false;
if (shieldMode.get() == ShieldMode.Ignore && player.isBlocking()) return false;
}
Expand Down