Skip to content

Conversation

@Rushaway
Copy link
Member

  • Replaced the loop in DisplayLengths_Menu with explicit AddLength calls for each ban duration
  • Improving clarity and maintainability.
  • Updated KnockbackRestrict.inc patch version from 4.0.5 to 4.0.6.

https://github.com/NiDE-gg/ze-configs-private/issues/121

- Replaced the loop in DisplayLengths_Menu with explicit AddLength calls for each ban duration
- Improving clarity and maintainability.
- Updated KnockbackRestrict.inc patch version from 4.0.5 to 4.0.6.
Copilot AI review requested due to automatic review settings January 16, 2026 10:21
Copy link

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 the ban duration menu by replacing a loop-based approach with explicit AddLength calls for each ban duration option. The change aims to improve code clarity and maintainability while adjusting the available ban duration options.

Changes:

  • Replaced the for-loop in DisplayLengths_Menu with explicit AddLength calls
  • Modified available ban durations (removed some options, added 4-month option)
  • Incremented patch version from 4.0.5 to 4.0.6

Reviewed changes

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

File Description
addons/sourcemod/scripting/include/KnockbackRestrict.inc Version bump from 4.0.5 to 4.0.6
addons/sourcemod/scripting/helpers/menus.sp Replaced loop with explicit AddLength calls for ban durations

@Rushaway Rushaway merged commit 5a9d837 into srcdslab:main Jan 16, 2026
3 checks passed
@Rushaway Rushaway deleted the 406 branch January 16, 2026 10:28
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