Removed all obsolete methods from TShock
This commit is contained in:
parent
a8b4bf1d95
commit
a0c4864567
9 changed files with 1 additions and 263 deletions
|
|
@ -213,15 +213,6 @@ namespace TShockAPI
|
|||
/// </summary>
|
||||
public Vector2 LastNetPosition = Vector2.Zero;
|
||||
|
||||
/// <summary>
|
||||
/// The player's login name.
|
||||
/// </summary>
|
||||
[Obsolete("Use User.Name instead")]
|
||||
public string UserAccountName
|
||||
{
|
||||
get { return User == null ? null : User.Name; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// User object associated with the player.
|
||||
/// Set when the player logs in.
|
||||
|
|
@ -244,15 +235,6 @@ namespace TShockAPI
|
|||
/// </summary>
|
||||
public bool HasSentInventory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The player's user id( from the db ).
|
||||
/// </summary>
|
||||
[Obsolete("Use User.ID instead")]
|
||||
public int UserID
|
||||
{
|
||||
get { return User == null ? -1 : User.ID; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Whether the player has been nagged about logging in.
|
||||
/// </summary>
|
||||
|
|
@ -684,16 +666,6 @@ namespace TShockAPI
|
|||
SendData(PacketTypes.Disconnect, reason);
|
||||
}
|
||||
|
||||
[Obsolete("This method is no longer used.")]
|
||||
public virtual void Flush()
|
||||
{
|
||||
var client = Netplay.Clients[Index];
|
||||
if (client == null)
|
||||
return;
|
||||
|
||||
//TShock.PacketBuffer.Flush(client);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fired when the player's temporary group access expires.
|
||||
/// </summary>
|
||||
|
|
@ -1068,24 +1040,6 @@ namespace TShockAPI
|
|||
/// </summary>
|
||||
public Item ItemInHand = new Item();
|
||||
|
||||
/// <summary>
|
||||
/// Disables the player for the given <paramref name="reason"/>.
|
||||
/// </summary>
|
||||
/// <param name="reason">The reason why the player was disabled.</param>
|
||||
/// <param name="displayConsole">Whether or not to log this event to the console.</param>
|
||||
[Obsolete("Use Disable(string, DisableFlags)")]
|
||||
public virtual void Disable(string reason = "", bool displayConsole = true)
|
||||
{
|
||||
if (displayConsole)
|
||||
{
|
||||
Disable(reason, DisableFlags.WriteToConsole);
|
||||
}
|
||||
else
|
||||
{
|
||||
Disable(reason, DisableFlags.WriteToLog);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disables the player for the given <paramref name="reason"/>
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue