//Wait for server to finish so we make sure all of the levels are loaded
        void OnLoadDone()
        {
            Logger.Log("[WoMTextures] Succesfully initiated!");
            FileUtils.CreateDirIfNotExist(ServerSettings.GetSetting("configpath") + "WoMTexturing/");

            foreach (Level l in Level.Levels)
            {
                //This allows us to get a setting from any level cfg.
                CFGSettings s = new CFGSettings(l);
                CFGDict.CreateIfNotExist <Level, CFGSettings>(l, s);
                s.Init();
            }
            PluginSettings = new WoMPluginSettings();
            PluginSettings.Init();

            Server.OnServerFinishSetup -= OnLoadDone;
            //Need on level load event to add to dictionary and serve cfg.
            Player.OnAllPlayersReceiveUnknownPacket.Normal += new Event <Player, PacketEventArgs> .EventHandler(OnIncomingData);

            Player.OnAllPlayersSendPacket.Normal += new Event <Player, PacketEventArgs> .EventHandler(OnOutgoingData);

            Player.OnAllPlayersRotate.Normal += new Event <Player, RotateEventArgs> .EventHandler(OnRotate);

            Level.OnAllLevelsLoad.Normal += new Event <Level, LevelLoadEventArgs> .EventHandler(OnLevelLoad);
        }
        //Wait for server to finish so we make sure all of the levels are loaded
        void OnLoadDone()
        {
            Logger.Log("[WoMTextures] Succesfully initiated!");
            FileUtils.CreateDirIfNotExist(ServerSettings.GetSetting("configpath") + "WoMTexturing/");

            foreach (Level l in Level.Levels)
            {
                //This allows us to get a setting from any level cfg.
                CFGSettings s = new CFGSettings(l);
                CFGDict.CreateIfNotExist<Level, CFGSettings>(l, s);
                s.OnLoad();
            }
            PluginSettings = new WoMPluginSettings();
            PluginSettings.OnLoad();

            Server.OnServerFinishSetup -= OnLoadDone;
            //Need on level load event to add to dictionary and serve cfg.
            Player.OnAllPlayersReceiveUnknownPacket.Normal += new Event<Player, PacketEventArgs>.EventHandler(OnIncomingData);
            Player.OnAllPlayersSendPacket.Normal += new Event<Player, PacketEventArgs>.EventHandler(OnOutgoingData);
            Player.OnAllPlayersRotate.Normal += new Event<Player, RotateEventArgs>.EventHandler(OnRotate);
        }