Added Hook for player login, for plugin sake, now they can utilize the login before join.

This commit is contained in:
Zack Piispanen 2012-09-24 14:32:21 -04:00
parent 673f25f881
commit c37cc91ca0
4 changed files with 37 additions and 1 deletions

View file

@ -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);