You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct command suggestions to match the arguments accepted by Games, including the current prefix and applicable permission or sender context.
GAMES-1: Poker kick completes matching online tournament registrants only for permitted players at an editable, enabled, idle table; excludes live/paying tables and invalid targets.
GAMES-2: Deal table completes back directly after board/dealer and after a valid positive card count, filtering prefixes and excluding console or invalid argument sequences.
GAMES-3: Reload is suggested only when games.admin and games.admin.reload are both granted, including an explicit child-permission denial.
Validation: tfmc-mvn -o -B --no-transfer-progress clean verify passed (1236 tests, zero failures, errors or skips), including command-completion regressions. git diff --check passed.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
📝 Summary
Summary by CodeRabbit
Bug Fixes
Tab completion now shows the reload command only to players with the required permission.
Poker kick suggestions are limited to eligible online players at nearby tables where the action is available.
Deal commands now suggest the back modifier in the relevant position and validate numeric counts before offering completions.
Command completion now filters reload and poker kick suggestions by permissions and table conditions. It also suggests the back modifier for supported deal table arguments.
The reload suggestion requires games.admin.reload. Tests check the permission conditions for top-level suggestions.
Poker kick target completion src/main/java/net/tfminecraft/games/command/CommandManager.java, src/test/java/net/tfminecraft/games/command/CommandManagerTest.java
Player-name suggestions require an eligible sender and an editable, idle poker table. Suggestions are limited to online players registered at that table. Tests cover these checks and prefix matching.
Deal table back modifier completion src/main/java/net/tfminecraft/games/command/CommandManager.java, src/test/java/net/tfminecraft/games/command/CommandManagerTest.java
The back suggestion is available for board and dealer piles at supported argument positions. Completion after a count requires an integer of at least one. Tests cover invalid arguments and sender conditions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:S10-29 effective changed lines (tests excluded in mixed PRs).
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Correct command suggestions to match the arguments accepted by Games, including the current prefix and applicable permission or sender context.
GAMES-1: Poker kick completes matching online tournament registrants only for permitted players at an editable, enabled, idle table; excludes live/paying tables and invalid targets.GAMES-2: Deal table completes back directly after board/dealer and after a valid positive card count, filtering prefixes and excluding console or invalid argument sequences.GAMES-3: Reload is suggested only when games.admin and games.admin.reload are both granted, including an explicit child-permission denial.Validation:
tfmc-mvn -o -B --no-transfer-progress clean verifypassed (1236 tests, zero failures, errors or skips), including command-completion regressions.git diff --checkpassed.Documentation: TF-Minecraft/Docs#266.