public class PlayerTransferEvent extends Object implements PlayerEvent, Cancellable
| Constructor and Description |
|---|
PlayerTransferEvent(Player player,
String address,
int port) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress()
Get the address which the player will be sent to.
|
Player |
getPlayer()
Player to be transferred.
|
int |
getPort()
Get the port which the player will be sent to.
|
boolean |
isCancelled()
Check if the transfer will be cancelled.
|
void |
setCancelled(boolean cancelled)
Set whether the transfer will be cancelled.
|
public Player getPlayer()
getPlayer in interface PlayerEventpublic boolean isCancelled()
isCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
setCancelled in interface Cancellablecancelled - true to cancel the transfer.public String getAddress()
public int getPort()
Copyright © 2017–2018 NukkitX. All rights reserved.