Ejemplo n.º 1
0
        private void Init()
        {
            _pluginInstance = this;

            permission.RegisterPermission(PermissionAnyOrderLevel1, this);
            permission.RegisterPermission(PermissionAnyOrderLevel2, this);
            permission.RegisterPermission(PermissionAnyOrderLevel3, this);

            foreach (var ruleset in _pluginConfig.BlueprintRulesets)
            {
                if (!string.IsNullOrEmpty(ruleset.Name))
                {
                    permission.RegisterPermission(GetRulesetPermission(ruleset.Name), this);
                }
            }
        }
Ejemplo n.º 2
0
 private void Unload()
 {
     _pluginInstance = null;
     _pluginConfig   = null;
 }