bugfixes
Dieser Commit ist enthalten in:
Ursprung
e18001824b
Commit
1ac73810e2
@ -66,12 +66,14 @@ public class EnderPearlListener implements Listener {
|
||||
|
||||
@EventHandler
|
||||
public void handleProjectileHit(ProjectileHitEvent event) {
|
||||
Bukkit.broadcastMessage("22wewq");
|
||||
Bukkit.broadcastMessage("1");
|
||||
Entity entity = event.getEntity();
|
||||
if(entity.getType() != EntityType.ENDER_PEARL)
|
||||
return;
|
||||
Bukkit.broadcastMessage("2");
|
||||
if(!(entity.getPassenger() instanceof Player))
|
||||
return;
|
||||
Bukkit.broadcastMessage("3");
|
||||
Player player = (Player) entity;
|
||||
player.teleport(event.getHitBlock().getLocation().add(0.0D, 1.0D, 0.0D));
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren