private void Unload() { foreach (var item in _items.Values) { item.Remove(); } _pluginConfig = null; _pluginInstance = null; }
private void Init() { _pluginInstance = this; foreach (var ruleset in _pluginConfig.Rulesets) { var perm = ruleset.GetPermission(); if (perm != null) { permission.RegisterPermission(perm, this); } } }