-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Add settings to protect items from explosions #2504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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.
EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java
Show resolved
Hide resolved
pretty sure these changes are merge-ready, why is the status waiting on author? |
If @md678685 wants to take it as is its up to him. |
@md678685 Need one of those fancy dancy stamps to merge this :) |
EssentialsProtect/src/com/earth2me/essentials/protect/ProtectConfig.java
Outdated
Show resolved
Hide resolved
EssentialsProtect/src/com/earth2me/essentials/protect/ProtectConfig.java
Outdated
Show resolved
Hide resolved
Essentials/src/config.yml
Outdated
water-bucket-flow: false | ||
fire-spread: true | ||
lava-fire-spread: true | ||
lava-itemdamage: true |
There was a problem hiding this comment.
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.
Essentials/src/config.yml
Outdated
portal-creation: false | ||
tnt-explosion: false | ||
tnt-playerdamage: false | ||
tnt-itemdamage: true |
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=
There was a problem hiding this 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.
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.
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.
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