Added IP to TSPlayer
This commit is contained in:
parent
42905f2317
commit
a8df558fe2
2 changed files with 9 additions and 6 deletions
|
|
@ -48,6 +48,10 @@ namespace TShockAPI
|
|||
{
|
||||
get { return TPlayer.active; }
|
||||
}
|
||||
public string IP
|
||||
{
|
||||
get { return Tools.GetRealIP(Netplay.serverSock[Index].tcpClient.Client.RemoteEndPoint.ToString()); }
|
||||
}
|
||||
public int Team
|
||||
{
|
||||
get { return TPlayer.team; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue