🌳
SimpleClaimSystem
  • SimpleClaimSystem
  • Installation
    • Prerequisites
    • Installation
  • Configuration
    • config.yml
    • How to set up a gui
    • Langs
    • Claim settings
  • Commands
    • Player commands
    • Admin commands
  • Permissions
    • How to set up
    • Commands
    • Claims
    • Settings
  • Support
    • PlaceholderAPI
    • WorldGuard
    • Vault
    • Dynmap
    • Bluemap
    • Pl3xMap
    • GriefPrevention
  • API
    • Dependency
    • Accessing
    • Working with players
    • Working with claims
Powered by GitBook
On this page
  1. API

Working with players

How to work with players with SimpleClaimSystem API

PreviousAccessingNextWorking with claims

Last updated 10 months ago

Available methods :

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();
}
CPlayer.java