Skip to content

Commit 7c11a01

Browse files
committed
refactor: remove parentheses
1 parent 2edcd63 commit 7c11a01

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/endstone_example/example_plugin.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ def on_disable(self) -> None:
2020

2121
def on_command(self, sender: CommandSender, command: Command, args: list[str]) -> bool:
2222
# You can also handle commands here instead of setting an executor in on_enable if you prefer
23-
match (command.name, args):
24-
case ("test", []):
23+
match command.name, args:
24+
case "test", []:
2525
# handle /test
26-
sender.send_message("Test!")
27-
case ("test", [n]):
26+
sender.send_message("Test!!")
27+
case "test", [n]:
2828
# handle /test n
29-
sender.send_message(f"Test with number {n}!")
30-
case (_, []):
29+
sender.send_message(f"Test with number: {n}!")
30+
case _, []:
3131
# handle /* (wildcard)
3232
sender.send_message(f"/{command.name} is executed from Python!")
33-
case (_, *args):
33+
case _, *args:
3434
# handle /* args... (wildcard)
3535
sender.send_message(f"/{command.name} is executed from Python with arguments {args}!")
3636

0 commit comments

Comments
 (0)