Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 954 Bytes

api.md

File metadata and controls

53 lines (41 loc) · 954 Bytes
description
Developer Information for VoteParty.

API

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() {
	}