TShock now loads before other plugins.

Removed unnecessary logs
This commit is contained in:
high 2011-07-01 09:47:23 -04:00
parent b46866e0dd
commit b01e244f48

View file

@ -66,6 +66,7 @@ namespace TShockAPI
public TShock(Main game) public TShock(Main game)
: base(game) : base(game)
{ {
Order = 0;
} }
public override void Initialize() public override void Initialize()
@ -84,7 +85,7 @@ namespace TShockAPI
#endif #endif
Log.ConsoleInfo(string.Format("TShock Version {0} ({1}) now running.", Version, VersionCodename)); Log.ConsoleInfo(string.Format("TShock Version {0} ({1}) now running.", Version, VersionCodename));
Log.Info("Starting...");
GameHooks.PostInitialize += OnPostInit; GameHooks.PostInitialize += OnPostInit;
GameHooks.Update += OnUpdate; GameHooks.Update += OnUpdate;
@ -95,24 +96,15 @@ namespace TShockAPI
NetHooks.GetData += GetData; NetHooks.GetData += GetData;
NetHooks.GreetPlayer += OnGreetPlayer; NetHooks.GreetPlayer += OnGreetPlayer;
NpcHooks.StrikeNpc += NpcHooks_OnStrikeNpc; NpcHooks.StrikeNpc += NpcHooks_OnStrikeNpc;
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
Log.Info("Hooks initialized");
Bans.LoadBans(); Bans.LoadBans();
Log.Info("Bans initialized");
GetDataHandlers.InitGetDataHandler(); GetDataHandlers.InitGetDataHandler();
Log.Info("Get data handlers initialized");
Commands.InitCommands(); Commands.InitCommands();
Log.Info("Commands initialized");
RegionManager.ReadAllSettings(); RegionManager.ReadAllSettings();
WarpsManager.ReadAllSettings(); WarpsManager.ReadAllSettings();
ItemManager.LoadBans(); ItemManager.LoadBans();
Main.autoSave = ConfigurationManager.AutoSave; Main.autoSave = ConfigurationManager.AutoSave;
Backups.KeepFor = ConfigurationManager.BackupKeepFor; Backups.KeepFor = ConfigurationManager.BackupKeepFor;
Backups.Interval = ConfigurationManager.BackupInterval; Backups.Interval = ConfigurationManager.BackupInterval;