Files
Pumpkin/pumpkin-protocol
Omar Afet f92f9f2ad7 Add /tick command (#932)
* Tick Command Implementation

* Send the current ticking state to the new player so they are in sync.

* extend `/tick query` command with performance tracking

* feat: enhance tick sprint reporting and message formatting

* Add suggestion hints for tick command arguments

* fix: update tick command permission level

* fix: resolve clippy pedantic warnings and refactor tick command

- Refactor oversized execute function in tick command into smaller helper methods:
  - handle_query() for query command logic
  - handle_non_sprinting_status() for status display
  - send_percentiles() for percentile calculations
  - handle_step_command() and handle_sprint_command() for respective operations
- Fix format string warnings by using inline format arguments ({tickrate:.1})
- Replace lossless casts (ticks as i64) with From::from() for type safety
- Use Self instead of explicit type name in tick_worlds method signature
- Add Default trait implementation for Ticker struct
- Ensure all match arms return proper Result types

Resolves all clippy::pedantic warnings including too_many_lines, uninlined_format_args, cast_lossless, and use_self violations.

* fix: replace hardcoded tick rate with configurable value from BASIC_CONFIG

* revert back the old comment
2025-06-24 11:30:26 +02:00
..
2025-06-24 11:30:26 +02:00
2025-06-22 23:28:59 +02:00