TShock/TShockAPI/TSPlayer.cs
Maverick Motherfucker bdd55a4d06 Fixed merge
2011-06-03 19:57:58 -07:00

39 lines
773 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TShockAPI
{
public class TSPlayer
{
public uint tileThreshold;
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;
}
}
}