RCONNNNNN
This commit is contained in:
parent
c31eeb1c6c
commit
10167df4ef
1 changed files with 7 additions and 1 deletions
|
|
@ -67,6 +67,7 @@ namespace TShockAPI
|
||||||
public static bool OverridePort;
|
public static bool OverridePort;
|
||||||
public static PacketBufferer PacketBuffer;
|
public static PacketBufferer PacketBuffer;
|
||||||
public static MaxMind.GeoIPCountry Geo;
|
public static MaxMind.GeoIPCountry Geo;
|
||||||
|
public static bool PostInit = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called after TShock is initialized. Useful for plugins that needs hooks before tshock but also depend on tshock being loaded.
|
/// Called after TShock is initialized. Useful for plugins that needs hooks before tshock but also depend on tshock being loaded.
|
||||||
|
|
@ -190,7 +191,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
GetDataHandlers.InitGetDataHandler();
|
GetDataHandlers.InitGetDataHandler();
|
||||||
Commands.InitCommands();
|
Commands.InitCommands();
|
||||||
//RconHandler.StartThread();
|
RconHandler.StartThread();
|
||||||
|
|
||||||
if (Config.BufferPackets)
|
if (Config.BufferPackets)
|
||||||
PacketBuffer = new PacketBufferer();
|
PacketBuffer = new PacketBufferer();
|
||||||
|
|
@ -359,6 +360,11 @@ namespace TShockAPI
|
||||||
|
|
||||||
private void OnUpdate()
|
private void OnUpdate()
|
||||||
{
|
{
|
||||||
|
if (!PostInit)
|
||||||
|
{
|
||||||
|
OnPostInit();
|
||||||
|
PostInit = true;
|
||||||
|
}
|
||||||
UpdateManager.UpdateProcedureCheck();
|
UpdateManager.UpdateProcedureCheck();
|
||||||
|
|
||||||
if (Backups.IsBackupTime)
|
if (Backups.IsBackupTime)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue