Skip to content

Commit 2c9d2d2

Browse files
committed
feat: add more usages to the test command
1 parent d8d8dd0 commit 2c9d2d2

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/endstone_example/example_plugin.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,20 @@ def on_enable(self) -> None:
1212
self.logger.info("on_enable is called!")
1313

1414
self.register_command(
15-
name="python", description="Zen of python", usages=["/python"], aliases=["py"]
15+
name="python",
16+
description="Zen of python",
17+
usages=["/python"],
18+
aliases=["py"],
1619
).executor = PythonCommandExecutor()
1720

1821
self.register_command(
19-
name="test", description="This is a test command from python", usages=["/test", "/test [value: int]"]
22+
name="test",
23+
description="This is a test command from python",
24+
usages=[
25+
"/test",
26+
"/test [value: int]",
27+
"/test [value: float]",
28+
],
2029
)
2130

2231
def on_disable(self) -> None:

0 commit comments

Comments
 (0)