Added way to have an overridable group that is session based.

New command /sudo <player> <group> will override the player's group with the group specified.
This commit is contained in:
Zack Piispanen 2012-12-15 18:59:25 -05:00
parent 9960526384
commit 0aedf2b108
4 changed files with 60 additions and 5 deletions

View file

@ -71,10 +71,26 @@ namespace TShockAPI
public int FirstMaxMP { get; set; }
/// <summary>
/// The player's group.
/// </summary>
public Group Group { get; set; }
/// <summary>
/// The player's group.
/// </summary>
public Group Group
{
get
{
if (tempGroup != null)
return tempGroup;
return group;
}
set { group = value; }
}
/// <summary>
/// The player's temporary group. This overrides the user's actual group.
/// </summary>
public Group tempGroup = null;
private Group group = null;
public bool ReceivedInfo { get; set; }