diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index ce8de02f..260d7265 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -457,7 +457,7 @@ namespace TShockAPI } - Hooks.PlayerLoginEvent.OnPlayerLogin(args.Player); + Hooks.PlayerHooks.OnPlayerLogin(args.Player); } else { diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index c085a31b..f7f00283 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1384,7 +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); + Hooks.PlayerHooks.OnPlayerLogin(args.Player); return true; } TShock.Utils.ForceKick(args.Player, "Invalid user account password.", true); diff --git a/TShockAPI/Hooks/PlayerLoginEvent.cs b/TShockAPI/Hooks/PlayerHooks.cs similarity index 90% rename from TShockAPI/Hooks/PlayerLoginEvent.cs rename to TShockAPI/Hooks/PlayerHooks.cs index b533720f..383624ac 100644 --- a/TShockAPI/Hooks/PlayerLoginEvent.cs +++ b/TShockAPI/Hooks/PlayerHooks.cs @@ -5,7 +5,7 @@ using System.Text; namespace TShockAPI.Hooks { - class PlayerLoginEventArgs + public class PlayerLoginEventArgs { public TSPlayer Player { get; set; } public PlayerLoginEventArgs(TSPlayer ply) @@ -14,7 +14,7 @@ namespace TShockAPI.Hooks } } - class PlayerLoginEvent + public static class PlayerHooks { public delegate void PlayerLoginD(PlayerLoginEventArgs e); public static event PlayerLoginD PlayerLogin; diff --git a/TShockAPI/TShockAPI.csproj b/TShockAPI/TShockAPI.csproj index 42902da7..4bb1f9d1 100644 --- a/TShockAPI/TShockAPI.csproj +++ b/TShockAPI/TShockAPI.csproj @@ -86,7 +86,7 @@ - + @@ -189,7 +189,7 @@ - +