mcph.plugin_manager
#
Module for some plugin-manager methods.
Module Contents#
Classes#
Make some stuff with plugin management. |
- class PluginManager(folder: str)[source]#
Make some stuff with plugin management.
- get_all_plugins() List[mcph.models.plugin.Plugin] [source]#
Getter for list with all plugins.
- Returns:
List with all plugins.
- process_plugin(jar_file) Dict[str, str] [source]#
Opens plugin.jar and then parsing plugin.yml inside .jar.
- Parameters:
jar_file – File object, which points to plugin.
- Returns:
Parsed yaml in dict.
- static get_specified_plugin(plugin_name: str, plugins: List[mcph.models.plugin.Plugin]) mcph.models.plugin.Plugin | None [source]#
Found plugin in list, by its name.
- Parameters:
plugin_name – Plugin name of plugin which we try to find.
plugins – List of plugins, where we need to find.
- Returns:
Plugin object, or None if we didn’t find anything.