Skip to content

Commit

Permalink
feat: use distribution name for plugin's default name
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Jul 25, 2024
1 parent f5f2204 commit 1968a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/src/endstone/_internal/plugin_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def load_plugins(self, directory) -> List[Plugin]:

# prepare plugin description
cls_attr = dict(cls.__dict__)
name = cls_attr.pop("name", plugin_metadata["name"])
name = cls_attr.pop("name", dist_name)
version = cls_attr.pop("version", plugin_metadata["version"])

api_version = cls_attr.pop("api_version", None)
Expand Down

0 comments on commit 1968a0c

Please sign in to comment.