public override void OnEnabled()
        {
            base.OnEnabled();
            //string appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
            pluginDir = Path.Combine(Paths.Configs, "CustomSpawns");
            if (!Directory.Exists(pluginDir))
            {
                Directory.CreateDirectory(pluginDir);
            }

            /*if (!File.Exists(Path.Combine(pluginDir, "config-" + typeof(ServerStatic).GetField("ServerPort", BindingFlags.NonPublic | BindingFlags.Static).GetValue(null).ToString() + ".yml")))
             *  File.WriteAllText(Path.Combine(pluginDir, "config-" + typeof(ServerStatic).GetField("ServerPort", BindingFlags.NonPublic | BindingFlags.Static).GetValue(null).ToString() + ".yml"), "");*/
            if (!File.Exists(Path.Combine(pluginDir, "database-" + typeof(ServerStatic).GetField("ServerPort", BindingFlags.NonPublic | BindingFlags.Static).GetValue(null).ToString() + ".yml")))
            {
                db = new DatabaseConfig()
                {
                    Groups     = new Dictionary <string, DatabaseConfigGroupEntry>(),
                    ItemSpawns = new List <DatabaseConfigItemEntry>(),
                    Spawns     = new Dictionary <string, DatabaseConfigSpawnEntry>()
                };
                DatabaseSave();
                //File.WriteAllText(Path.Combine(pluginDir, "database-" + typeof(ServerStatic).GetField("ServerPort", BindingFlags.NonPublic | BindingFlags.Static).GetValue(null).ToString() + ".yml"), "");
            }
            DatabaseLoad();
            PLEV = new CSPEventHandler(this);
            Exiled.Events.Handlers.Server.RoundStarted      += PLEV.RoundStart;
            Exiled.Events.Handlers.Server.WaitingForPlayers += PLEV.WaitingForPlayers;
        }
 public override void OnDisabled()
 {
     base.OnDisabled();
     Exiled.Events.Handlers.Server.RoundStarted      -= PLEV.RoundStart;
     Exiled.Events.Handlers.Server.WaitingForPlayers -= PLEV.WaitingForPlayers;
     PLEV = null;
 }