Skip to content

Enable/Disable blockDamage and setFire for Explosions #9

@Darunia18

Description

@Darunia18

I would like to suggest possibly adding a way to set whether you want explosions (created from stomp attack and possibly jump attack) to destroy blocks or set fire. Currently, jump attack does not destroy blocks, but stomp attack does. I'm not sure which file actually creates the explosion (Attacks.java or GiantListeners.java), but if it is GiantListeners, this could be an easy fix (replacing line 361's createExplosion event from using location, power to using x, y, z, power, setFire, breakBlocks).

This probably doesn't make too much sense because I'm not familiar with Bukkit too much, but I've coded some similar things in PHP (for Pocket Edition server plugins), but you can just use http://jd.bukkit.org/rb/doxygen/dd/daa/interfaceorg_1_1bukkit_1_1World.html#a658553aedb81f30c95d7178e26c450eb as reference.

Thanks for considering this! If you are too busy to do this yourself (with school starting for many), I can make a pull request after I bugtest some changes, as long as I know which file to edit (Attacks.java or GiantListeners.java). Thank you for your time on this plugin! I really love it and this is one of only two problems I've had with it so far (as giants are destroying peoples' land).

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions