Skip to content

Refactor PunishmentMenu to simplify UI and improve button functionality - #16

Merged
Adammatthiesen merged 1 commit into
mainfrom
simplify
Oct 18, 2026
Merged

Adammatthiesen merged 1 commit into
mainfrom
simplify

Conversation

@Adammatthiesen

Copy link
Copy Markdown
Member

This pull request simplifies and refines the PunishmentMenu user interface by adjusting the display formatting, updating action buttons, and removing several event-driven actions related to punishment management. The main focus is on making the menu clearer and less cluttered for users.

UI and formatting improvements:

  • The "Player" label for bans is removed; now only the player's display name is shown for clarity.
  • The expiration date and punisher's name now use more distinct color formatting (DARK_RED for expiration, DARK_PURPLE for punisher) to improve readability.

Action buttons and event handling changes:

  • The "[Cancel]" button is replaced with a "[Back to List]" button for more intuitive navigation.
  • The "[Unpunish]", "[Pardon]", and "[Pardon IP]" buttons and their associated event emissions are removed, streamlining the menu and removing direct unpunishment actions from this interface.

Code cleanup:

  • Unused imports related to events and the global ban system are removed, reflecting the removal of event-driven actions from the menu.

@Adammatthiesen
Adammatthiesen marked this pull request as ready for review October 18, 2026 03:09
@Adammatthiesen
Adammatthiesen merged commit f971583 into main Oct 18, 2026
1 check passed
@Adammatthiesen
Adammatthiesen deleted the simplify branch October 18, 2026 03:15
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.

1 participant