public class PlayerPlayerInteractionEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerPlayerInteractionEvent(Player player,
Player targetPlayer) |
| Modifier and Type | Method and Description |
|---|---|
Player |
getTargetPlayer()
Gets the target player (i.e. the other player the player interacts with).
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic Player getTargetPlayer()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.