Prevent blank UUIDs from being banned

This fixes a bug with a bad actor getting banned with a blank client UUID and then preventing anyone from joining the server due to a lack of UUID on the Connect Request ban check.
This commit is contained in:
ohayo 2025-02-08 14:37:48 +10:00
parent de142e419e
commit 6d5fff83cf
2 changed files with 6 additions and 2 deletions

View file

@ -1607,7 +1607,7 @@ namespace TShockAPI
}
}
if (banUuid)
if (banUuid && player.UUID.Length > 0)
{
banResult = DoBan($"{Identifier.UUID}{player.UUID}", reason, expiration);
}