# Players Page dedicated to handling player accounts. - - - ## PlayerIndex variable This variable is what tells WaspLib which account you will be using of the ones you have in a {ref}`TRSPlayerArray` you want to use for this botting session. - - - ## TRSPlayerArray Type that holds player account information for {ref}`login`, world hopping and {ref}`bankpin` handling. - - - ## TRSPlayerArray.Add ```pascal procedure TRSPlayerArray.Add(user, pass: String; pin: String = ''; worlds: TIntegerArray = []); ``` Adds a TRSPlayer to the TRSPlayerArray. Example: ```pascal Players.Add('username', 'password', '0000'); ``` - - - ## Players.GetPlayer ```pascal function TRSPlayerArray.GetPlayer(): TRSPlayer; ``` Returns the currently selected TRSPlayer. The currently selected TRSPlayer is decided by `PlayerIndex` which is an index of the TRSPlayerArra. Example: ```pascal WriteLn Players.GetPlayer().Username; ``` - - - ## Players.GetPin ```pascal function TRSPlayerArray.GetPin(): String; ``` Get the current Player bank pin. Example: ```pascal if BankPin.IsOpen() then BankPin.Enter(Players.GetPin()); ``` - - - ## Players variable Global {ref}`TRSPlayerArray` variable.