API/PartyInterface

Code snapshot of the PartyInterface

Subject to change till 0.4.0 and again till release: The interfaces will get changed slightly. [CHANGED TO STRING_ARGUMENTS ONLY, SINCE 0.3.3 BETA] [METHOD NAMES HAVE BEEN CHANGED TO MATCH mcMMO METHOD NAMES FROM 0.2.5 BETA ON]

package asofold.admittance.interfaces;

import org.bukkit.entity.Player;


/**
 * This interface allows for providing party (team) information to the admittance-plugin.
 * If set, this will allow for using extra sign-syntax like {[admittance] ; [party with] ; <player name>},
 *  or {[admittance] ; [party name] ; <party name>} .
 *  
 *  
 * @author dummy
 *
 */
public interface PartyInterface extends PublicInterface{

	/**
	 * return if both players are in the same party.
	 * @param player1
	 * @param player2
	 * @return
	 */
	public boolean inSameParty( String playerName1, String playerName2);
	
	/**
	 * return the Name of the party the player is in or null, if the player is not in a party;
	 * @param player
	 * @return
	 */
	public String partyName(String playerName);
}

Comments

Posts Quoted:
Reply
Clear All Quotes