Skip to content

ClanAPI Player

MathiasMC edited this page Dec 27, 2020 · 4 revisions

This class holds clan information about the player and can be created or get by using

ClanPlayer clanPlayer = clanAPI.getClanPlayer(uuid);

getUniqueId();
# UUID
Returns: UUID of the player

getName();
# String
Returns: Name of the player

getClanID();
# long
Returns: clan id (0 == no clan)

getCoins();
# long
Returns: Amount of coins the player has

getClan();
# Clan
Returns: null if has no clan

getStats();
# ClanStats
Returns: null if has no clan

getResponse();
# Response.WithdrawType
Returns: (default OWN) (CLAN, OWN)

setClanID(id);
# long

setCoins(amount);
# long

setResponse(response);
# Response.WithdrawType (CLAN, OWN)

requestSave();
# void
# Request save later

saveAsync();
# void
# Save async now

Clone this wiki locally