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

Could Not Pass EntityDeathEvent. #37

Open
matthiasiam opened this issue Apr 2, 2014 · 4 comments
Open

Could Not Pass EntityDeathEvent. #37

matthiasiam opened this issue Apr 2, 2014 · 4 comments

Comments

@matthiasiam
Copy link

This error plagues my console. Not sure how to handle it. Thanks! Spigot 1.7.5

http://pastebin.com/4YfDhydS

@alkarinv
Copy link
Owner

alkarinv commented Apr 2, 2014

Not even sure how this is possible... basically it's saying that both the killer and target is a player... but that it's not a PlayerDeathEvent...

Do you know what plugin is doing that? But a workaround is very simple.. I'll try and do it right now.

@matthiasiam
Copy link
Author

You mean besides BattleTracker? There is a separate plugin creating this event?

@alkarinv
Copy link
Owner

alkarinv commented Apr 2, 2014

Well.. I just looked in the code. This error is coming from this .
"ClassCastException: EntityDeathEvent cannot be cast to PlayerDeathEvent"

So it's a generic Entity.. not a Player. That is what the error says.

In my code... I have this right before the line that causes the error

if (event instanceof PlayerDeathEvent){
   PlayerDeathEvent pde = (PlayerDeathEvent) event; /// line that is causing error
}

Basically I check to make sure its a Player before casting. So all I can think of is some sort of conflict... or perhaps is a problem with using the /reload, on the server.

I would suggest restarting... guessing the problem will go away.

@matthiasiam
Copy link
Author

Okay, I'll wait for the scheduled restart and keep track of this error if it occurs again after the restart. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants