diff --git a/README.md b/README.md index bce2a72..775018d 100644 --- a/README.md +++ b/README.md @@ -53,12 +53,15 @@ python-example-plugin/ When everything is good to go, you can package your plugin into a `.whl` (Wheel) file for easier distribution: ```bash - pip install wheel - python -m pip wheel . --no-deps --wheel-dir=wheelhouse + pip install pipx + pipx run build --wheel ``` - This command will produce a `.whl` file in the `wheelhouse` directory which can be installed. To publish your plugin - to a package index such as PyPI, please refer to: + This command will produce a `.whl` file in the `dist` directory. Copy the `.whl` file to the `plugins` directory + of your Endstone server. Start the Endstone server and check the logs to ensure your plugin loads and operates + as expected. + + To publish your plugin to a package index such as PyPI, please refer to: - [Using TestPyPI](https://packaging.python.org/en/latest/guides/using-testpypi/) - [Publishing package distribution releases using GitHub Actions CI/CD workflows](https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/) diff --git a/src/endstone_example/example_plugin.py b/src/endstone_example/example_plugin.py index 75a7c33..b0d852f 100644 --- a/src/endstone_example/example_plugin.py +++ b/src/endstone_example/example_plugin.py @@ -82,7 +82,6 @@ def on_disable(self) -> None: def on_command(self, sender: CommandSender, command: Command, args: list[str]) -> bool: # You can also handle commands here instead of setting an executor in on_enable if you prefer - match command.name: case "test": if len(args) > 0: