Skip to main content

TradeCommandModule.ATMCommandModule

A static class in Root.Township, the global namespace.

The trade atm console commands for reading and changing a player's gold bank (ATM) balance.

Methods​

MemberWhat it is
static async Task<int> AddATM(UserInfoAccess user, int quantityToAdd)Adds to a player's ATM balance (never below zero), saves it if they are offline, and returns the new balance.
static async Task<int> GetATM(UserInfoAccess user)Returns a player's ATM balance, or 0 if the player is not valid.
static async Task SetATM(UserInfoAccess user, int quantity)Sets a player's ATM balance and saves it if they are offline.