Removed all referneces to admin and replaced with group permissions
This commit is contained in:
parent
8d7a52ff9a
commit
362b2b776e
5 changed files with 7 additions and 65 deletions
|
|
@ -13,8 +13,6 @@ namespace TShockAPI
|
|||
public Group group;
|
||||
|
||||
private int player;
|
||||
private bool admin;
|
||||
private bool adminSet;
|
||||
|
||||
public TSPlayer(int ply)
|
||||
{
|
||||
|
|
@ -30,16 +28,5 @@ namespace TShockAPI
|
|||
{
|
||||
return player;
|
||||
}
|
||||
|
||||
public bool IsAdmin()
|
||||
{
|
||||
if (adminSet)
|
||||
{
|
||||
return admin;
|
||||
}
|
||||
admin = Tools.IsAdmin(player);
|
||||
adminSet = true;
|
||||
return admin;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue