Implemented config for disabling account login at join.
This commit is contained in:
parent
1671db928b
commit
be20d07707
2 changed files with 4 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ namespace TShockAPI
|
|||
private static bool HandleConnecting(GetDataHandlerArgs args)
|
||||
{
|
||||
var user = TShock.Users.GetUserByName(args.Player.Name);
|
||||
if (user != null)
|
||||
if (user != null && !TShock.Config.DisableLoginBeforeJoin)
|
||||
{
|
||||
args.Player.RequiresPassword = true;
|
||||
NetMessage.SendData((int)PacketTypes.PasswordRequired, args.Player.Index);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue