mc_plugin_helper.plugin_manager module#

Module for some plugin-manager methods.

class Plugin(name, version, file_path)[source]#

Bases: object

Create object for plugin.

class PluginManager(folder)[source]#

Bases: object

Make some stuff with plugin management.

get_all_plugins()[source]#

Getter for list with all plugins.

Return type

List[Plugin]

Returns

List with all plugins.

process_plugin(jar_file)[source]#

Opens plugin.jar and then parsing plugin.yml inside .jar.

Parameters

jar_file – File object, which points to plugin.

Return type

Dict[str, str]

Returns

Parsed yaml in dict.