geforkt von Mirrors/Paper
Improve calling of ProjectileHitEvent. Fixes BUKKIT-3872
By: Andre LeBlanc <andre@norcode.com>
Dieser Commit ist enthalten in:
Ursprung
10245ce119
Commit
3c6a12547b
@ -532,6 +532,12 @@ public class CraftEventFactory {
|
||||
return event;
|
||||
}
|
||||
|
||||
public static ProjectileHitEvent callProjectileHitEvent(Entity entity) {
|
||||
ProjectileHitEvent event = new ProjectileHitEvent((Projectile) entity.getBukkitEntity());
|
||||
entity.world.getServer().getPluginManager().callEvent(event);
|
||||
return event;
|
||||
}
|
||||
|
||||
public static ExpBottleEvent callExpBottleEvent(Entity entity, int exp) {
|
||||
ThrownExpBottle bottle = (ThrownExpBottle) entity.getBukkitEntity();
|
||||
ExpBottleEvent event = new ExpBottleEvent(bottle, exp);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren