Skip to content

refactor: replace appendPrefix with more specific prefixes for mess…#4

Merged
Keviro merged 1 commit intoversion/1.21.11from
feat/new-prefixes
Jan 22, 2026
Merged

refactor: replace appendPrefix with more specific prefixes for mess…#4
Keviro merged 1 commit intoversion/1.21.11from
feat/new-prefixes

Conversation

@TheBjoRedCraft
Copy link
Copy Markdown
Member

…aging output across menus and commands

  • Update appendPrefix calls to appendSuccessPrefix, appendErrorPrefix, and appendInfoPrefix for clearer context in user feedback.
  • Increment project version to 1.21.11-2.0.1-SNAPSHOT.

…aging output across menus and commands

- Update `appendPrefix` calls to `appendSuccessPrefix`, `appendErrorPrefix`, and `appendInfoPrefix` for clearer context in user feedback.
- Increment project version to `1.21.11-2.0.1-SNAPSHOT`.
@TheBjoRedCraft TheBjoRedCraft self-assigned this Jan 22, 2026
Copilot AI review requested due to automatic review settings January 22, 2026 18:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors messaging output across the settings plugin by replacing the generic appendPrefix() method with more specific prefix methods (appendSuccessPrefix(), appendErrorPrefix(), and appendInfoPrefix()), providing clearer semantic context for different types of user feedback. The version is incremented to 1.21.11-2.0.1-SNAPSHOT.

Changes:

  • Replace generic appendPrefix() with context-specific prefix methods in menu files
  • Update command argument error messages to use appendErrorPrefix()
  • Apply appropriate prefixes (success/error/info) in command implementations

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
LobbySettingsMenu.kt Updated 2 toggle success messages to use appendSuccessPrefix()
FriendSettingsMenu.kt Updated 4 toggle success messages to use appendSuccessPrefix()
ClanSettingsMenu.kt Updated 4 toggle success messages to use appendSuccessPrefix()
ChatSettingsMenu.kt Updated 4 toggle success messages to use appendSuccessPrefix()
SettingArgument.kt Updated argument validation error to use appendErrorPrefix()
NiceToggleArgument.kt Updated argument validation error to use appendErrorPrefix()
SurfSettingsCommand.kt Updated refresh success, empty list error, and list info messages with appropriate prefixes
SettingsCommand.kt Updated Folia error, validation errors, success messages, and info query with appropriate prefixes
gradle.properties Incremented version from 1.21.11-2.0.0-SNAPSHOT to 1.21.11-2.0.1-SNAPSHOT

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Keviro Keviro disabled auto-merge January 22, 2026 20:01
@Keviro Keviro merged commit f47a008 into version/1.21.11 Jan 22, 2026
6 checks passed
@Keviro Keviro deleted the feat/new-prefixes branch January 22, 2026 20:01
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.

3 participants