Add some more hack checks to painting tiles & walls

Also add permission to ignore paint threshold
This commit is contained in:
MarioE 2013-10-04 19:05:10 -04:00
parent 149dbdf56d
commit d4c7385781
3 changed files with 43 additions and 9 deletions

View file

@ -319,21 +319,31 @@ namespace TShockAPI
}
}
/// <summary>
/// Gets the player's selected item.
/// </summary>
public Item SelectedItem
{
get { return TPlayer.inventory[TPlayer.selectedItem]; }
}
public int State
{
get { return Netplay.serverSock[Index].state; }
set { Netplay.serverSock[Index].state = value; }
}
/// <summary>
/// Gets the player's UUID.
/// </summary>
public string UUID
{
get {
return RealPlayer
? Netplay.serverSock[Index].clientUUID
: "";
}
get { return RealPlayer ? Netplay.serverSock[Index].clientUUID : ""; }
}
/// <summary>
/// Gets the player's IP.
/// </summary>
public string IP
{
get