public static bool UnloadPlugin(BasePlugin plugin) { lock (_plugins) { bool result = plugin.Dispose(); string cleanedName = plugin.Name.ToLower().Trim(); if (_plugins.ContainsKey(cleanedName)) { _plugins.Remove(cleanedName); } return(result); } }