Skip to content

Commit

Permalink
api tick 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l committed Jun 17, 2017
1 parent 6fdaeb6 commit 5c715ed
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "HelperBot/tshock-references"]
path = HelperBot/tshock-references
url = https://github.com/Ryozuki/tshock-references
10 changes: 5 additions & 5 deletions HelperBot/HelperBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace HelperBot
{
[ApiVersion(2, 0)]
[ApiVersion(2, 1)]
public class HelperBot : TerrariaPlugin
{
#region Info
Expand Down Expand Up @@ -46,8 +46,8 @@ public override void Initialize()
ServerApi.Hooks.GamePostInitialize.Register(this, OnPostInitialize);
ServerApi.Hooks.ServerChat.Register(this, onChat, -666);
ServerApi.Hooks.NetGetData.Register(this, onGetData);
TShockAPI.Hooks.PlayerHooks.PlayerPostLogin += PlayerHooks_PlayerPostLogin;
TShockAPI.Hooks.PlayerHooks.PlayerLogout += PlayerHooks_PlayerLogout;
PlayerHooks.PlayerPostLogin += PlayerHooks_PlayerPostLogin;
PlayerHooks.PlayerLogout += PlayerHooks_PlayerLogout;

sTimer.Elapsed += Second_Elapsed;
sTimer.Interval = 1000;
Expand All @@ -62,8 +62,8 @@ protected override void Dispose(bool disposing)
ServerApi.Hooks.GamePostInitialize.Deregister(this, OnPostInitialize);
ServerApi.Hooks.ServerChat.Deregister(this, onChat);
ServerApi.Hooks.NetGetData.Deregister(this, onGetData);
TShockAPI.Hooks.PlayerHooks.PlayerPostLogin -= PlayerHooks_PlayerPostLogin;
TShockAPI.Hooks.PlayerHooks.PlayerLogout -= PlayerHooks_PlayerLogout;
PlayerHooks.PlayerPostLogin -= PlayerHooks_PlayerPostLogin;
PlayerHooks.PlayerLogout -= PlayerHooks_PlayerLogout;
}
base.Dispose(disposing);
}
Expand Down
15 changes: 9 additions & 6 deletions HelperBot/HelperBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,15 @@
<Compile Include="PTime.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="References\Mono.Data.Sqlite.dll" />
<Content Include="References\MySql.Data.dll" />
<Content Include="References\Newtonsoft.Json.dll" />
<Content Include="References\OTAPI.dll" />
<Content Include="References\TerrariaServer.exe" />
<Content Include="References\TShockAPI.dll" />
<Content Include="tshock-references\Mono.Data.Sqlite.dll" />
<Content Include="tshock-references\MySql.Data.dll" />
<Content Include="tshock-references\Newtonsoft.Json.dll" />
<Content Include="tshock-references\OTAPI.dll" />
<Content Include="tshock-references\TerrariaServer.exe" />
<Content Include="tshock-references\TShockAPI.dll" />
</ItemGroup>
<ItemGroup>
<None Include="tshock-references\README.md" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Binary file removed HelperBot/References/Mono.Data.Sqlite.dll
Binary file not shown.
Binary file removed HelperBot/References/MySql.Data.dll
Binary file not shown.
Binary file removed HelperBot/References/Newtonsoft.Json.dll
Binary file not shown.
Binary file removed HelperBot/References/OTAPI.dll
Binary file not shown.
Binary file removed HelperBot/References/TShockAPI.dll
Binary file not shown.
Binary file removed HelperBot/References/TerrariaServer.exe
Binary file not shown.
1 change: 1 addition & 0 deletions HelperBot/tshock-references
Submodule tshock-references added at bdac76

0 comments on commit 5c715ed

Please sign in to comment.