Class PreTransferEvent.TransferResult
java.lang.Object
com.velocitypowered.api.event.connection.PreTransferEvent.TransferResult
- All Implemented Interfaces:
ResultedEvent.Result
- Enclosing class:
- PreTransferEvent
Transfer Result of a player to another host.
-
Method Summary
Modifier and TypeMethodDescription@Nullable InetSocketAddress
address()
allowed()
denied()
boolean
Returns whether or not the event is allowed to proceed.transferTo
(InetSocketAddress address) Sets the result of transfer to a specific host.
-
Method Details
-
allowed
-
denied
-
transferTo
Sets the result of transfer to a specific host.- Parameters:
address
- the address specified- Returns:
- a new TransferResult
-
isAllowed
public boolean isAllowed()Description copied from interface:ResultedEvent.Result
Returns whether or not the event is allowed to proceed. Plugins may choose to skip denied events, and the proxy will respect the result of this method.- Specified by:
isAllowed
in interfaceResultedEvent.Result
- Returns:
- whether or not the event is allowed to proceed
-
address
-