TShock now loads before other plugins.
Removed unnecessary logs
This commit is contained in:
parent
b46866e0dd
commit
b01e244f48
1 changed files with 2 additions and 10 deletions
|
|
@ -66,6 +66,7 @@ namespace TShockAPI
|
|||
public TShock(Main game)
|
||||
: base(game)
|
||||
{
|
||||
Order = 0;
|
||||
}
|
||||
|
||||
public override void Initialize()
|
||||
|
|
@ -84,7 +85,7 @@ namespace TShockAPI
|
|||
#endif
|
||||
|
||||
Log.ConsoleInfo(string.Format("TShock Version {0} ({1}) now running.", Version, VersionCodename));
|
||||
Log.Info("Starting...");
|
||||
|
||||
|
||||
GameHooks.PostInitialize += OnPostInit;
|
||||
GameHooks.Update += OnUpdate;
|
||||
|
|
@ -95,24 +96,15 @@ namespace TShockAPI
|
|||
NetHooks.GetData += GetData;
|
||||
NetHooks.GreetPlayer += OnGreetPlayer;
|
||||
NpcHooks.StrikeNpc += NpcHooks_OnStrikeNpc;
|
||||
|
||||
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
|
||||
Log.Info("Hooks initialized");
|
||||
|
||||
Bans.LoadBans();
|
||||
Log.Info("Bans initialized");
|
||||
|
||||
GetDataHandlers.InitGetDataHandler();
|
||||
Log.Info("Get data handlers initialized");
|
||||
|
||||
Commands.InitCommands();
|
||||
Log.Info("Commands initialized");
|
||||
|
||||
RegionManager.ReadAllSettings();
|
||||
WarpsManager.ReadAllSettings();
|
||||
ItemManager.LoadBans();
|
||||
|
||||
|
||||
Main.autoSave = ConfigurationManager.AutoSave;
|
||||
Backups.KeepFor = ConfigurationManager.BackupKeepFor;
|
||||
Backups.Interval = ConfigurationManager.BackupInterval;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue