コード例 #1
0
        internal void Init()
        {
            SynapseTranslation = new Translation(new PluginInformation {
                Name = "Synapse"
            });
            var trans = new Dictionary <string, string>
            {
                { "sameteam", "<b>You can't harm this person</b>" },
                { "scpteam", "As your current Role you can't harm an Scp" },
                { "noperm", "You don't have permission to execute this command (%perm%)" }
            };

            SynapseTranslation.CreateTranslations(trans);

            _syml = new SYML(SynapseController.Server.Files.ConfigFile);
            _syml.Load();
            SynapseConfiguration = new SynapseConfiguration();
            SynapseConfiguration = _syml.GetOrSetDefault("Synapse", SynapseConfiguration);
        }
コード例 #2
0
        internal void Init()
        {
            synapseTranslation = new SynapseTranslation <Translation.Translation>(Server.Get.Files.GetTranslationPath("Synapse"));
            synapseTranslation.AddTranslation(new Synapse.Translation.Translation(), "ENGLISH");
            synapseTranslation.AddTranslation(new Translation.Translation
            {
                noPermissions = "Du hast keine Berechtigung diesen Command zu benutzen!(%perm%)",
                sameTeam      = "<b>Du kannst diese Person nicht verletzen!</b>",
                scpTeam       = "Als deine jetzige Rolle kannst du nichts machen was ein SCP verletzen würde!",
            }, "GERMAN");
            synapseTranslation.AddTranslation(new Translation.Translation
            {
                noPermissions = "Vous ne disposez pas de la permission requise pour cette commande ! (%perm%)",
                scpTeam       = "Vous ne pouvez pas nuire à un SCP en cette classe !",
                sameTeam      = "Vous ne pouvez pas nuire à cette personne !",
            }, "FRENCH");

            _syml = new SYML(SynapseController.Server.Files.ConfigFile);
            _syml.Load();
            synapseConfiguration = new SynapseConfiguration();
            synapseConfiguration = _syml.GetOrSetDefault("Synapse", synapseConfiguration);
        }
コード例 #3
0
 public void Reload()
 {
     _syml.Load();
     synapseConfiguration = _syml.GetOrSetDefault("Synapse", new SynapseConfiguration());
 }
コード例 #4
0
 public void Reload()
 {
     _syml.Load();
     SynapseConfiguration = _syml.GetOrSetDefault("Synapse", new SynapseConfiguration());
     SynapseTranslation.ReloadTranslations();
 }