Package me.playernguyen.opteco.api
Interface IOptEcoAPI
- All Known Implementing Classes:
- OptEcoAPI
public interface IOptEcoAPI
- 
Method SummaryModifier and Type Method Description booleanaddPoints(double amount)Add points into player's accountjava.lang.StringgetCurrencySymbol()Get the currency symboljava.util.UUIDgetPlayer()API Player interactivedoublegetPoints()Get points of playerbooleanhasAccount()Check whether the account that exist or notbooleanisPending()Check whether player is on pending transaction or notbooleansetPoints(double amount)Set points of playerbooleantakePoints(double amount)Take points out of player's account
- 
Method Details- 
hasAccountboolean hasAccount()Check whether the account that exist or not- Returns:
- boolean has this account on database or not
 
- 
setPointsboolean setPoints(double amount)Set points of player- Parameters:
- amount- amount you want to set
- Returns:
- boolean is set or not
 
- 
getPointsdouble getPoints()Get points of player- Returns:
- double balance of that player
 
- 
isPendingboolean isPending()Check whether player is on pending transaction or not- Returns:
- boolean is pending or not
 
- 
getPlayerjava.util.UUID getPlayer()API Player interactive- Returns:
- Player
 
- 
addPointsboolean addPoints(double amount)Add points into player's account- Parameters:
- amount- how much
- Returns:
- is added or not
 
- 
takePointsboolean takePoints(double amount)Take points out of player's account- Parameters:
- amount- how much
- Returns:
- is taken or not
 
- 
getCurrencySymboljava.lang.String getCurrencySymbol()Get the currency symbol- Returns:
- String currency symbol
 
 
-