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.setPickupStatus(AbstractArrow.PickupStatus.DISALLOWED);
|
||||
arrow.addPassenger(event.getPlayer());
|
||||
arrow.setPersistent(true);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onEntityDismount(EntityDismountEvent event) {
|
||||
if(event.getEntity().getType() != EntityType.ARROW)
|
||||
if(event.getDismounted().getType() != EntityType.ARROW)
|
||||
return;
|
||||
|
||||
if(event.getEntityType() != EntityType.PLAYER)
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren