Added Hook for player login, for plugin sake, now they can utilize the login before join.
This commit is contained in:
parent
673f25f881
commit
c37cc91ca0
4 changed files with 37 additions and 1 deletions
|
|
@ -1384,6 +1384,7 @@ namespace TShockAPI
|
|||
}
|
||||
args.Player.SendMessage("Authenticated as " + args.Player.Name + " successfully.", Color.LimeGreen);
|
||||
Log.ConsoleInfo(args.Player.Name + " authenticated successfully as user " + args.Player.Name + ".");
|
||||
Hooks.PlayerLoginEvent.OnPlayerLogin(args.Player);
|
||||
return true;
|
||||
}
|
||||
TShock.Utils.ForceKick(args.Player, "Invalid user account password.", true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue