atavism.server.plugins
Class BillingClient
java.lang.Object
atavism.server.plugins.BillingClient
public class BillingClient
- extends java.lang.Object
Method Summary |
static java.lang.Float |
decrementTokenBalance(OID playerOid,
java.lang.Float amount)
Sends an update to modify the player's token balance. |
static java.lang.Float |
getTokenBalance(OID playerOid)
Retrieves the player's token balance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAMESPACE
public static Namespace NAMESPACE
MSG_TYPE_DECREMENT_TOKEN_BALANCE
public static final MessageType MSG_TYPE_DECREMENT_TOKEN_BALANCE
MSG_TYPE_GET_TOKEN_BALANCE
public static final MessageType MSG_TYPE_GET_TOKEN_BALANCE
MSG_TYPE_BILLING_BALANCE
public static final MessageType MSG_TYPE_BILLING_BALANCE
MSG_GET_PLAYER
public static final MessageType MSG_GET_PLAYER
BillingClient
public BillingClient()
decrementTokenBalance
public static java.lang.Float decrementTokenBalance(OID playerOid,
java.lang.Float amount)
- Sends an update to modify the player's token balance.
- Parameters:
playerOid
- the oid of the player whose balance should be modifiedamount
- the amount to modify the balance. This should be a negative number.
- Returns:
- the updated balance or null if an error has occurred
getTokenBalance
public static java.lang.Float getTokenBalance(OID playerOid)
- Retrieves the player's token balance. This value is world specific, not player character specific
- Parameters:
playerOid
-
- Returns:
- the player's current token balance