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 Details

    • BungeePartiesPartyFollowEvent

      public BungeePartiesPartyFollowEvent(Party party, String joinedServer)
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Description copied from interface: Cancellable
      Is the event cancelled?
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      true if the event is cancelled
    • setCancelled

      public void setCancelled(boolean cancel)
      Description copied from interface: Cancellable
      Set the event as cancelled
      Specified by:
      setCancelled in interface Cancellable
      Parameters:
      cancel - true to cancel
    • getParty

      @NotNull public @NotNull Party getParty()
      Get the party
      Returns:
      the Party
    • getJoinedServer

      @NotNull public @NotNull String getJoinedServer()
      Get the name of the server that the party will join into
      Returns:
      the name of the server