API

Developer Information for VoteParty.

Custom Event

Inside of VoteParty, we offer a custom event that is listened to inside the plugin to give out rewards. This allows plugins to hook into it and also give extra rewards or modify to what they see fit.

VoteReceivedEvent

    /**
     * This event takes place when a hooked plugin receives a vote
     * @param player The player that voted
     */
    public VoteReceivedEvent(OfflinePlayer player Vote vote) {
        this.player = player;
        this.vote = vote;
    }

PrePartyEvent

	/**
	 * This event takes place when a party is preparing to start
	 */
	public PrePartyEvent() {
	}

PartyStartEvent

	/**
	 * This event takes place when a party is starting
	 */
	public PartyStartEvent() {
	}

PartyEndEvent

	/**
	 * This event takes place when a party is finished
	 */
	public PartyEndEvent() {
	}

Last updated