Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Apr 24, 2019

This PR contributes to #2284. I reworked my fork so that it's better suited since I sort of screwed the other.

Adds protection values to Essentials Protect blocking item damage when entities such as wither skulls; fireballs; TNT explode.

Closes #2284

Copy link
Member

@mdcfe mdcfe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor issue - otherwise, this looks good.

@mdcfe mdcfe added this to the 2.18.0 milestone Jun 26, 2019
@mdcfe mdcfe added the type: enhancement Features and feature requests. label Aug 28, 2019
@Ichbinjoe Ichbinjoe added the status: waiting on author Pull requests that require changes from the author in order to merge. label Dec 29, 2019
@ghost
Copy link
Author

ghost commented Dec 29, 2019

pretty sure these changes are merge-ready, why is the status waiting on author?

@Ichbinjoe
Copy link
Member

On a separate note, since these are disjunct cases they should be else if, not just if.

If @md678685 wants to take it as is its up to him.

Ichbinjoe
Ichbinjoe previously approved these changes Mar 31, 2020
@Ichbinjoe Ichbinjoe requested a review from mdcfe March 31, 2020 03:33
@Ichbinjoe
Copy link
Member

@md678685 Need one of those fancy dancy stamps to merge this :)

JRoy
JRoy previously approved these changes May 22, 2020
@JRoy JRoy requested a review from Ichbinjoe May 22, 2020 01:59
Ichbinjoe
Ichbinjoe previously approved these changes May 22, 2020
water-bucket-flow: false
fire-spread: true
lava-fire-spread: true
lava-itemdamage: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend this be set to false by default, because this is a change which is going to take many server owners by surprise, especially if they are trying to run a fairly standard vanilla survival server.

portal-creation: false
tnt-explosion: false
tnt-playerdamage: false
tnt-itemdamage: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=

public enum ProtectConfig {
disable_contactdmg("protect.disable.contactdmg", false),
disable_lavadmg("protect.disable.lavadmg", false),
disable_lava_item_dmg("protect.prevent.lava-itemdamage", true),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=

Copy link
Member

@mdcfe mdcfe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the comments from @pop4959 - defaults shouldn't come as a surprise to server owners.

@pop4959 pop4959 dismissed stale reviews from Ichbinjoe and JRoy via 610af27 June 15, 2020 09:47
@pop4959 pop4959 requested review from mdcfe and pop4959 June 15, 2020 09:50
@mdcfe mdcfe changed the title item damage protection, prevent players from exploding their items! Add settings to protect items from explosions Jun 15, 2020
@mdcfe mdcfe merged commit 846043e into EssentialsX:2.x Jun 15, 2020
JRoy pushed a commit to JRoy/Essentials-PR that referenced this pull request Aug 30, 2020
Co-authored-by: Josh Roy <[email protected]>
Co-authored-by: pop4959 <[email protected]>

Adds protection settings to Protect to block item damage when entities such as wither skulls, fireballs, TNT and creepers explode.

Closes EssentialsX#2284.
ressidell pushed a commit to ressidell/Essentials that referenced this pull request Apr 27, 2025
Co-authored-by: Josh Roy <[email protected]>
Co-authored-by: pop4959 <[email protected]>

Adds protection settings to Protect to block item damage when entities such as wither skulls, fireballs, TNT and creepers explode.

Closes EssentialsX#2284.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting on author Pull requests that require changes from the author in order to merge. type: enhancement Features and feature requests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "item damage" settings to EssentialsX Protect

4 participants