Class VelocityPartiesPartyFollowEvent
- java.lang.Object
-
- com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
-
- com.alessiodp.parties.api.events.velocity.unique.VelocityPartiesPartyFollowEvent
-
- All Implemented Interfaces:
Cancellable,PartiesEvent
public class VelocityPartiesPartyFollowEvent extends VelocityPartiesEvent implements Cancellable
-
-
Constructor Summary
Constructors Constructor Description VelocityPartiesPartyFollowEvent(Party party, com.velocitypowered.api.proxy.server.RegisteredServer joinedServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull com.velocitypowered.api.proxy.server.RegisteredServergetJoinedServer()Get the name of the server that the party will join into@NotNull PartygetParty()Get the partybooleanisCancelled()Is the event cancelled?voidsetCancelled(boolean cancel)Set the event as cancelled-
Methods inherited from class com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
getApi, setApi
-
-
-
-
Constructor Detail
-
VelocityPartiesPartyFollowEvent
public VelocityPartiesPartyFollowEvent(Party party, com.velocitypowered.api.proxy.server.RegisteredServer joinedServer)
-
-
Method Detail
-
getJoinedServer
@NotNull public @NotNull com.velocitypowered.api.proxy.server.RegisteredServer getJoinedServer()
Get the name of the server that the party will join into- Returns:
- the name of the server
-
isCancelled
public boolean isCancelled()
Description copied from interface:CancellableIs the event cancelled?- Specified by:
isCancelledin interfaceCancellable- Returns:
trueif the event is cancelled
-
setCancelled
public void setCancelled(boolean cancel)
Description copied from interface:CancellableSet the event as cancelled- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel-trueto cancel
-
-