Server password in tshock now, you can login with your account password now

This commit is contained in:
Zidonuke 2011-12-28 20:40:25 -05:00
parent b353f62336
commit da5de78155
4 changed files with 133 additions and 23 deletions

View file

@ -74,6 +74,7 @@ namespace TShockAPI
public string IgnoreActionsForCheating = "none";
public bool IgnoreActionsForClearingTrashCan = false;
public PlayerData PlayerData;
public bool RequiresPassword = false;
public bool RealPlayer
{
@ -83,6 +84,13 @@ namespace TShockAPI
{
get { return RealPlayer && (Netplay.serverSock[Index] != null && Netplay.serverSock[Index].active && !Netplay.serverSock[Index].kill); }
}
public int State
{
get { return Netplay.serverSock[Index].state; }
set { Netplay.serverSock[Index].state = value; }
}
public string IP
{
get