Fixed visibility of PlayerHooks.cs

This commit is contained in:
Zack Piispanen 2012-12-15 12:54:22 -05:00
parent 140c73be0a
commit 9960526384
4 changed files with 6 additions and 6 deletions

View file

@ -457,7 +457,7 @@ namespace TShockAPI
} }
Hooks.PlayerLoginEvent.OnPlayerLogin(args.Player); Hooks.PlayerHooks.OnPlayerLogin(args.Player);
} }
else else
{ {

View file

@ -1384,7 +1384,7 @@ namespace TShockAPI
} }
args.Player.SendMessage("Authenticated as " + args.Player.Name + " successfully.", Color.LimeGreen); args.Player.SendMessage("Authenticated as " + args.Player.Name + " successfully.", Color.LimeGreen);
Log.ConsoleInfo(args.Player.Name + " authenticated successfully as user " + args.Player.Name + "."); Log.ConsoleInfo(args.Player.Name + " authenticated successfully as user " + args.Player.Name + ".");
Hooks.PlayerLoginEvent.OnPlayerLogin(args.Player); Hooks.PlayerHooks.OnPlayerLogin(args.Player);
return true; return true;
} }
TShock.Utils.ForceKick(args.Player, "Invalid user account password.", true); TShock.Utils.ForceKick(args.Player, "Invalid user account password.", true);

View file

@ -5,7 +5,7 @@ using System.Text;
namespace TShockAPI.Hooks namespace TShockAPI.Hooks
{ {
class PlayerLoginEventArgs public class PlayerLoginEventArgs
{ {
public TSPlayer Player { get; set; } public TSPlayer Player { get; set; }
public PlayerLoginEventArgs(TSPlayer ply) public PlayerLoginEventArgs(TSPlayer ply)
@ -14,7 +14,7 @@ namespace TShockAPI.Hooks
} }
} }
class PlayerLoginEvent public static class PlayerHooks
{ {
public delegate void PlayerLoginD(PlayerLoginEventArgs e); public delegate void PlayerLoginD(PlayerLoginEventArgs e);
public static event PlayerLoginD PlayerLogin; public static event PlayerLoginD PlayerLogin;

View file

@ -86,7 +86,7 @@
<ItemGroup> <ItemGroup>
<Compile Include="BackupManager.cs" /> <Compile Include="BackupManager.cs" />
<Compile Include="DB\RegionManager.cs" /> <Compile Include="DB\RegionManager.cs" />
<Compile Include="Hooks\PlayerLoginEvent.cs" /> <Compile Include="Hooks\PlayerHooks.cs" />
<Compile Include="SaveManager.cs" /> <Compile Include="SaveManager.cs" />
<Compile Include="DB\BanManager.cs" /> <Compile Include="DB\BanManager.cs" />
<Compile Include="DB\InventoryManager.cs" /> <Compile Include="DB\InventoryManager.cs" />
@ -189,7 +189,7 @@
</PropertyGroup> </PropertyGroup>
<ProjectExtensions> <ProjectExtensions>
<VisualStudio> <VisualStudio>
<UserProperties BuildVersion_UpdateAssemblyVersion="True" BuildVersion_UpdateFileVersion="True" BuildVersion_BuildAction="Both" BuildVersion_BuildVersioningStyle="None.None.None.MonthAndDayStamp" BuildVersion_StartDate="2011/6/17" BuildVersion_IncrementBeforeBuild="False" /> <UserProperties BuildVersion_IncrementBeforeBuild="False" BuildVersion_StartDate="2011/6/17" BuildVersion_BuildVersioningStyle="None.None.None.MonthAndDayStamp" BuildVersion_BuildAction="Both" BuildVersion_UpdateFileVersion="True" BuildVersion_UpdateAssemblyVersion="True" />
</VisualStudio> </VisualStudio>
</ProjectExtensions> </ProjectExtensions>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.