Archiviert
13
0
Dieser Commit ist enthalten in:
Yaruma3341 2020-01-19 19:28:41 +01:00
Ursprung db8899554a
Commit e18001824b

Datei anzeigen

@ -66,6 +66,7 @@ public class EnderPearlListener implements Listener {
@EventHandler
public void handleProjectileHit(ProjectileHitEvent event) {
Bukkit.broadcastMessage("22wewq");
Entity entity = event.getEntity();
if(entity.getType() != EntityType.ENDER_PEARL)
return;
@ -73,7 +74,6 @@ public class EnderPearlListener implements Listener {
return;
Player player = (Player) entity;
player.teleport(event.getHitBlock().getLocation().add(0.0D, 1.0D, 0.0D));
player.sendMessage("22wewq");
}