EssentialsX

EssentialsX

2M Downloads

Prevent creeper-explosion also prevents playerdamage

xtomyserrax opened this issue ยท 1 comments

commented

Information

Full output of /ess version:

[13:40:23] [Server thread/INFO]: Server version: 1.16.2-R0.1-SNAPSHOT git-Spigot-379750e-9f12e29 (MC: 1.16.2)
[13:40:23] [Server thread/INFO]: EssentialsX version: 2.18.0.0
[13:40:23] [Server thread/INFO]: LuckPerms version: 5.0.39
[13:40:23] [Server thread/INFO]: PlaceholderAPI version: 2.10.9
[13:40:23] [Server thread/INFO]: Vault version: 1.7.3-b131
[13:40:23] [Server thread/INFO]: EssentialsXProtect version: 2.18.0.0
[13:40:23] [Server thread/INFO]: EssentialsXChat version: 2.18.0.0

Server log:

EssentialsX config: https://pastebin.com/5jY6ijWg

Details

Description
Disabling creeper explosion also disables player damage because of a small error in the code.

Steps to reproduce
Basicly set protect.prevent.creeper-explosion to true and protect.prevent.creeper-playerdamage to false

Expected behavior
Explosion should be prevented but damage shouldnt.

Involved line of code

if (eAttack instanceof Creeper && (prot.getSettingBool(ProtectConfig.prevent_creeper_explosion) || prot.getSettingBool(ProtectConfig.prevent_creeper_playerdmg)) && !(target instanceof Player && shouldBeDamaged(user, "creeper"))) {

commented

#3604 has been merged, fixing this issue - you can download the latest version from the EssentialsX website.