content: package com.alessiodp.parties.api.events.bungee.player;
  
  import com.alessiodp.parties.api.events.bungee.BungeePartiesEvent;
  import com.alessiodp.parties.api.events.common.player.IPlayerPreInviteEvent;
  import com.alessiodp.parties.api.interfaces.Party;
  import com.alessiodp.parties.api.interfaces.PartyPlayer;
  import org.jetbrains.annotations.NotNull;
  import org.jetbrains.annotations.Nullable;
  
  public class BungeePartiesPlayerPreInviteEvent extends BungeePartiesEvent implements IPlayerPreInviteEvent {
  	private boolean cancelled;
  	private final PartyPlayer invitedPlayer;
  	private final PartyPlayer inviter;
  	private final Party party;
  	
  	public BungeePartiesPlayerPreInviteEvent(PartyPlayer invitedPlayer, PartyPlayer inviter, Party party) {
  		this.invitedPlayer = invitedPlayer;
  		this.inviter = inviter;
  		this.party = party;
  	}
  	
  	@Override
  	public @NotNull PartyPlayer getInvitedPlayer() {
  		return invitedPlayer;
  	}
  	
  	@Override
  	public @Nullable PartyPlayer getInviter() {
  		return inviter;
  	}
  	
  	@Override
  	public @NotNull Party getParty() {
  		return party;
  	}
  	
  	@Override
  	public boolean isCancelled() {
  		return cancelled;
  	}
  	
  	@Override
  	public void setCancelled(boolean cancel) {
  		cancelled = cancel;
  	}
  }
  