-
Notifications
You must be signed in to change notification settings - Fork 24
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
Event Exception (and server stops responding) when throwing ender pearls #44
Comments
Ok, on my side (Spigot 1.7.10) the server stops responding when I throw an ender pearl with damages disabled, without exception. CraftBukkit version git-Spigot-1551 (MC: 1.7.10) (Implementing API version 1.7.10-R0.1-SNAPSHOT). I'll investigate soon (I cannot work on the plugin today, I will be able to soon). Thanks for your report. |
oh, interesting. I tried looking into the code what could be causing it but didn't find anything suspicious. I also asked the guys over on Quakenet at #spigot just to make sure it's the plugin and not spigot causing it, and apparently it must be the plugin. My plugins are (9): WorldBorder, WorldEdit, ProtocolLib, PermissionsEx, NoCheatPlus, TelePlusPlus, SpectatorPlus, TagAPI, UHPlugin; the majority would be latest dev builds. Oh, did I say it's awesome? Your UHC plugin is awesome. |
I tried that too, without any obvious cause found.
Thanks for that.
Thanks! :) |
FOUND. /**
* Used to disable enderpearl damages (if needed).
*
* @param ev
*/
@EventHandler(ignoreCancelled = true)
public void onPlayerTeleport(final PlayerTeleportEvent ev) {
if(p.getConfig().getBoolean("gameplay-changes.disableEnderpearlsDamages")) {
if(ev.getCause() == TeleportCause.ENDER_PEARL) {
ev.setCancelled(true);
ev.getPlayer().teleport(ev.getTo(), TeleportCause.ENDER_PEARL);
}
}
} If I teleport a player with the tag Introduced by e2bf107 (18 August). |
Trying out the plugin with disabled ender pearl damage I encountered this error on CraftBukkit version git-Spigot-.7.9-R0.2-207-g03373bb (MC: 1.7.10) (Implementing API version 1.7.10-R0.1-SNAPSHOT) with UHPlugin build #62 (latest as of now):
To reproduce just throw some ender pearls while playing and wait a while, you should get console full of messages like that.
The text was updated successfully, but these errors were encountered: