Skip to content
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

Option to enable snowball knockback on player hit. #49

Closed
mibby opened this issue Apr 2, 2017 · 4 comments
Closed

Option to enable snowball knockback on player hit. #49

mibby opened this issue Apr 2, 2017 · 4 comments
Labels
enhancement A feature or enhancement suggestion for OldCombatMechanics

Comments

@mibby
Copy link

mibby commented Apr 2, 2017

Apparently snowball/egg knockback was a longstanding bug in Spigot and wasn't suppose to be a thing.
https://www.spigotmc.org/threads/bug-or-feature-snowball-egg-knockback.214759/#post-2232519

Would it be possible to implement an OCM module to allow for snowball/egg player knockback and/or damage? As it was a prevalent thing in my PVP arena community. :(

@kernitus kernitus added the enhancement A feature or enhancement suggestion for OldCombatMechanics label Apr 12, 2017
@kernitus
Copy link
Owner

Can you test out the projectile knockback module in build #70? I'm not entirely sure I got the knockback values correct

@mibby
Copy link
Author

mibby commented Apr 15, 2017

@gvlfm78 It seems you are able to hurt players in non-pvp areas and knockback players who are in creative or have godmode enabled. Would it be possible to only allow for knockback / damage if players are able to get hit / pvp normally?

As this allows a way for players to hurt each other in non-pvp zones and effectively annoy / push around people who are in creative or have godmode enabled.

@mibby
Copy link
Author

mibby commented Apr 15, 2017

As for the knockback values itself, I'm not entirely sure what the default would be. Instead of artificially moving players a distance and doing damage, would it be better to just do a standard hit damage event that normally applies a knockback effect? That way you would not be able to damage or move players if you can't normally hit / pvp a player?

Something similar to this plugin.
https://www.spigotmc.org/resources/snowball-damage.16740/

@kernitus
Copy link
Owner

I just released an update for this, as it is a serious issue to be able to damage players while in creative mode/protected areas. I also made it so it doesn't add knockback artificially, but simply alters the damage when hit by a snowball/egg/enderpearl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature or enhancement suggestion for OldCombatMechanics
Projects
None yet
Development

No branches or pull requests

2 participants