Class BungeePartiesPartyFollowEvent
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Event
-
- com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
-
- com.alessiodp.parties.api.events.bungee.unique.BungeePartiesPartyFollowEvent
-
- All Implemented Interfaces:
Cancellable,PartiesEvent
public class BungeePartiesPartyFollowEvent extends BungeePartiesEvent implements Cancellable
-
-
Constructor Summary
Constructors Constructor Description BungeePartiesPartyFollowEvent(Party party, String joinedServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull StringgetJoinedServer()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.bungee.BungeePartiesEvent
getApi, setApi
-
-
-
-
Method Detail
-
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
-
getJoinedServer
@NotNull public @NotNull String getJoinedServer()
Get the name of the server that the party will join into- Returns:
- the name of the server
-
-