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

LaunchProjectileEvent Does Not Fire #1397

Closed
SjsolisZXA opened this issue Jun 17, 2017 · 11 comments
Closed

LaunchProjectileEvent Does Not Fire #1397

SjsolisZXA opened this issue Jun 17, 2017 · 11 comments
Labels
status: pr pending A PR was opened to fix this issue system: event version: 1.12 (u) API: 7 (unsupported since May 21st 2021)

Comments

@SjsolisZXA
Copy link

Sponge Build: spongeforge-1.11.2-2227-6.0.0-BETA-2159
Sponge API Build: 6.0.0-20170217.091623-41
Forge Build: forge-1.11.2-13.20.0.2227-universal
Java Version: 1.8.0_121-b13

Hello, I have the following listeners that do not function at all. Unless I'm doing something wrong, I would like to know if this can be looked at. Thanks!

@Listener
public void onPlayerConsumption(UseItemStackEvent.Start event) {
event.setCancelled(true);
}

@Listener
public void onPotionThrow(LaunchProjectileEvent event) {
event.setCancelled(true);
}

@johnfg2610
Copy link

johnfg2610 commented Jun 17, 2017

are you registering the event listener? or is this in the main class? also try updating your version for sponge/forge see if it works in the newer versions

@SjsolisZXA
Copy link
Author

The listeners are registered and I've updated to spongeforge-1.10.2-2281-5.2.0-BETA-2401, but the issues are still present to this day. My issue was originally posted here months ago, but was told to re-post it here.

@darichey
Copy link

darichey commented Jul 5, 2017

I can also confirm that neither TargetProjectileEvent nor any of its children are fired using
spongevanilla-1.12-7.0.0-BETA-290
spongeapi-7.0.0-20170703.084035-18

@ryantheleach
Copy link
Contributor

I can confirm that LaunchProjectile event did not fire for players, skeletons, or dispensers shooting arrows on SpongeForge Bleeding 7789e67bbd1ef2ed2411d08d23c1ea006ef7aa56

by using https://gist.github.com/ryantheleach/2152cebe0e3c90874c39e69566df4b66

@SjsolisZXA
Copy link
Author

Bumping up report.

@phit
Copy link
Contributor

phit commented Nov 7, 2017

still an issue with caccfa4 tested both LaunchProjectileEvent & UseItemStackEvent.Start

@kashike kashike added version: 1.11 (u) API: 6 (unsupported since Jan 1st 2018) version: 1.12 (u) API: 7 (unsupported since May 21st 2021) labels Nov 8, 2017
@ImMorpheus
Copy link
Contributor

Partially able to reproduce on 1.12
UseItemStackEvent.Start is working fine.

LaunchProjectileEvent is broken.

@Zidane
Copy link
Member

Zidane commented Feb 3, 2018

@ImMorpheus

Want to work on LaunchProjectileEvent?

@RedNesto
Copy link
Contributor

RedNesto commented Feb 3, 2018

@Zidane Oh, I started working on LaunchProjectileEvent, but I will need some time to do it properly (modded support mostly)

@Zidane Zidane changed the title [6.0.0][1.11.2] UseItemStackEvent.Start and LaunchProjectileEvent Not Functioning LaunchProjectileEvent Does Not Fire Apr 25, 2018
@Zidane Zidane removed the version: 1.11 (u) API: 6 (unsupported since Jan 1st 2018) label Apr 25, 2018
@phit
Copy link
Contributor

phit commented Jul 2, 2018

#1769

@ImMorpheus
Copy link
Contributor

PR merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: pr pending A PR was opened to fix this issue system: event version: 1.12 (u) API: 7 (unsupported since May 21st 2021)
Projects
None yet
Development

No branches or pull requests

9 participants