Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New environment commands #27

Merged
merged 5 commits into from
Oct 2, 2024
Merged

New environment commands #27

merged 5 commits into from
Oct 2, 2024

Conversation

NonSwag
Copy link
Member

@NonSwag NonSwag commented Oct 1, 2024

This PR adds time and weather commands

  • /time command
  • /weather command

The `world` placeholder in the `SetSpawnCommand` message was changed to use `getName()` instead of `key().asString()`. This ensures the displayed name is more user-friendly and aligned with the expected naming convention.
Implemented the new /time command allowing users to set, add, and query the time in various worlds. Updated the necessary configurations and resource files to support this new feature.
@NonSwag NonSwag added the enhancement New feature or request label Oct 1, 2024
@NonSwag NonSwag self-assigned this Oct 1, 2024
Introduced a new CommandDefinition for the "weather" command in CommandConfig.java to support comprehensive weather management functionalities. This addition aligns with the existing weather-related commands like "rain," "sun," and "thunder."
Fixed the closing tags for weather commands in tweaks.properties to ensure uniform formatting and correct display. This resolves the issue where the closing tags were missing a color code.
This commit introduces the WeatherCommand class, providing the ability to set weather conditions such as clear, rain, or thunder through new commands. The WeatherCommand is registered along with existing weather commands in the TweaksPlugin, enhancing functionality for managing in-game weather states.
@NonSwag NonSwag merged commit 5fc6fec into master Oct 2, 2024
2 checks passed
@NonSwag NonSwag deleted the env-commands branch October 2, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant