TShock/TShockAPI/TSPlayer.cs
Deathmax 39edac96b0 Kill tile abuse now reverts the tiles.
Water acts glitchy (as if there was no tiles)
Things like trees and doors are not reverted
2011-06-05 14:16:58 +08:00

40 lines
898 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TShockAPI
{
public class TSPlayer
{
public uint tileThreshold;
public Dictionary<TShock.Position, Terraria.Tile> tilesDestroyed = new Dictionary<TShock.Position, Terraria.Tile>();
public bool syncHP = false;
public bool syncMP = false;
private int player;
private bool admin;
private bool adminSet;
public TSPlayer(int ply)
{
player = ply;
}
public Terraria.Player GetPlayer()
{
return Terraria.Main.player[player];
}
public bool IsAdmin()
{
if (adminSet)
{
return admin;
}
admin = Tools.IsAdmin(player);
adminSet = true;
return admin;
}
}
}