Skip to content

Conversation

@HiFlii
Copy link
Contributor

@HiFlii HiFlii commented Feb 25, 2025

The /fly command currently requires an additional float argument that is not used for anything. This PR introduces 2 fixes:

  1. The /fly command no longer requires the float argument
  2. The /fly command, when called with a float argument (e.g., /fly 10), will set the player's fly speed when flying is being enabled.

Added default value (1.0) to the /fly command.
Also made the /fly [float] command actually change the player's
fly speed based on the input.
Enables /fly and /fly [speed] forms without causing the /fly
form to reset the speed to 1.

Behavior is as follows:
If player sends /fly 5, their speed is set to 5
If player sends /fly, then /fly again (re-enabling flight), their speed is still 5.
Previously, their speed will have been set to 1.
@Boy0000 Boy0000 merged commit fb57487 into MineInAbyss:master Feb 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants