Beispiel #1
0
 public BTPlayer(int Index)
 {
     tsPlayer  = TShock.Players[Index];
     bindTools = (tsPlayer.User == null)
                 ? new List <BindTool>()
                 : BTDatabase.BTGet(tsPlayer.User.ID);
     awaitingCommands = new List <string>();
 }
Beispiel #2
0
 public BTPlayer(int Index)
 {
     TSPlayer  = TShock.Players[Index];
     BindTools = (TSPlayer.IsLoggedIn)
                                         ? BTDatabase.BTGet(TSPlayer.User.ID)
                                         : new List <BindTool>();
     AwaitingCommands = new List <string>();
 }
Beispiel #3
0
 public BTPlayer(int Index)
 {
     tsPlayer = TShock.Players[Index];
     // f*****g shit but i don't care how user or tsplayer becomes null
     bindTools = (tsPlayer?.Account is UserAccount user)
                                         ? BTDatabase.BTGet(user.ID)
                                         : new List <BindTool>();
     awaitingCommands = new List <string>();
 }