Account: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
The [[account]] class represents a [[client]]'s server account. You can get the account object associated to any client using [[getClientAccount]]. | The [[account]] class represents a [[client]]'s server account. You can get the [[account]] object associated to any client using [[getClientAccount]]. | ||
Accounts are unique to each client and can be used to store information that is persistent across map changes and user sessions. Clients that join without an account are given a temporary 'guest' account. This can store information like any other account, but isn't saved across sessions. | Accounts are unique to each client and can be used to store information that is persistent across map changes and user sessions. Clients that join without an account are given a temporary 'guest' account. This can store information like any other account, but isn't saved across sessions. | ||
Line 6: | Line 6: | ||
==Related scripting functions== | ==Related scripting functions== | ||
===Server=== | |||
{{Account functions}} | {{Account functions}} |
Revision as of 22:14, 30 August 2007
The account class represents a client's server account. You can get the account object associated to any client using getClientAccount.
Accounts are unique to each client and can be used to store information that is persistent across map changes and user sessions. Clients that join without an account are given a temporary 'guest' account. This can store information like any other account, but isn't saved across sessions.
When a user logs in or out, the account object assigned to them will change. As such, you must not assume that the account attached to a client remains constant during their session.
Related scripting functions
Server
- addAccount
- copyAccountData
- getAccount
- getAccountData
- getAccountName
- getAccountPlayer
- getAccountSerial
- getAccounts
- getAccountsBySerial
- getAllAccountData
- getPlayerAccount
- isGuestAccount
- logIn
- logOut
- removeAccount
- setAccountData
- setAccountPassword
- getAccountByID
- getAccountID
- getAccountIP
- getAccountsByData
- getAccountsByIP
- setAccountName