Working with players

How to work with players with SimpleClaimSystem API

Available methods :

CPlayer.java

Example of use :

/** Instance of SimpleClaimSystem API */
private SimpleClaimSystemAPI scs;

// Access to the SimpleClaimSystem API
scs = SimpleClaimSystemAPI_Provider.getAPI();

/**
* Gets the claims count of a player
*
* @param player the target player
* @return the player's claims count, 0 if CPlayer null
*/
public int getPlayerClaimsCount(Player player) {
    CPlayer target = scs.getCPlayer(player);
    return target == null ? 0 : target.getClaimsCount();
}

Last updated