---
description: How to work with players with SimpleClaimSystem API
---

# Working with players

Available methods : &#x20;

[CPlayer.java](https://github.com/Xyness/SimpleClaimSystem/blob/main/src/main/java/fr/xyness/SCS/CPlayer.java)

Example of use :

<pre class="language-java"><code class="lang-java">/** Instance of SimpleClaimSystem API */
private SimpleClaimSystemAPI scs;

// Access to the SimpleClaimSystem API
scs = SimpleClaimSystemAPI_Provider.getAPI();
<strong>
</strong><strong>/**
</strong>* 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();
}
</code></pre>
