public class VelocityPartiesPartyFollowEvent extends VelocityPartiesEvent implements Cancellable
Constructor and Description |
---|
VelocityPartiesPartyFollowEvent(Party party,
com.velocitypowered.api.proxy.server.RegisteredServer joinedServer) |
Modifier and Type | Method and Description |
---|---|
@NotNull com.velocitypowered.api.proxy.server.RegisteredServer |
getJoinedServer()
Get the name of the server that the party will join into
|
@NotNull Party |
getParty()
Get the party
|
boolean |
isCancelled()
Is the event cancelled?
|
void |
setCancelled(boolean cancel)
Set the event as cancelled
|
getApi, setApi
public VelocityPartiesPartyFollowEvent(Party party, com.velocitypowered.api.proxy.server.RegisteredServer joinedServer)
@NotNull public @NotNull com.velocitypowered.api.proxy.server.RegisteredServer getJoinedServer()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
true
if the event is cancelledpublic void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true
to cancelCopyright © 2023. All rights reserved.