Skip to content

Commit

Permalink
feat: add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Jun 15, 2024
1 parent 99befe9 commit 1f7f167
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/endstone_test/event_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ def send_welcome_message(player_name: str) -> None:
assert event.player.inventory.size == 36
assert event.player.inventory.max_stack_size == 254

assert event.player.has_permission("minecraft.command.me") is True
event.player.add_attachment(self._plugin, "minecraft.command.me", False)
assert event.player.has_permission("minecraft.command.me") is False
event.player.update_commands()

@property
def server(self) -> Server:
return self._plugin.server

0 comments on commit 1f7f167

Please sign in to comment.