Merge remote-tracking branch 'ghsa/handshake-final-update-fix' into general-devel
This commit is contained in:
commit
56041f2c1a
6 changed files with 111 additions and 24 deletions
|
|
@ -189,11 +189,15 @@ namespace TShockAPI.DB
|
|||
{
|
||||
List<string> identifiers = new List<string>
|
||||
{
|
||||
$"{Identifier.UUID}{player.UUID}",
|
||||
$"{Identifier.Name}{player.Name}",
|
||||
$"{Identifier.IP}{player.IP}"
|
||||
};
|
||||
|
||||
if (player.UUID != null && player.UUID.Length > 0)
|
||||
{
|
||||
identifiers.Add($"{Identifier.UUID}{player.UUID}");
|
||||
}
|
||||
|
||||
if (player.Account != null)
|
||||
{
|
||||
identifiers.Add($"{Identifier.Account}{player.Account.Name}");
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ namespace TShockAPI.DB
|
|||
if (!player.IsLoggedIn)
|
||||
return false;
|
||||
|
||||
if (player.State < 10)
|
||||
if (player.State < (int)ConnectionState.Complete)
|
||||
return false;
|
||||
|
||||
if (player.HasPermission(Permissions.bypassssc) && !fromCommand)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue