Merge remote-tracking branch 'origin/seat'
Dieser Commit ist enthalten in:
Commit
61af402960
@ -53,11 +53,12 @@ public class PlayerSeatListener extends BasicListener {
|
|||||||
arrow.setGravity(false);
|
arrow.setGravity(false);
|
||||||
arrow.setPickupStatus(AbstractArrow.PickupStatus.DISALLOWED);
|
arrow.setPickupStatus(AbstractArrow.PickupStatus.DISALLOWED);
|
||||||
arrow.addPassenger(event.getPlayer());
|
arrow.addPassenger(event.getPlayer());
|
||||||
|
arrow.setPersistent(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onEntityDismount(EntityDismountEvent event) {
|
public void onEntityDismount(EntityDismountEvent event) {
|
||||||
if(event.getEntity().getType() != EntityType.ARROW)
|
if(event.getDismounted().getType() != EntityType.ARROW)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(event.getEntityType() != EntityType.PLAYER)
|
if(event.getEntityType() != EntityType.PLAYER)
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren