Repository navigation
feat(teleport): add permission-gated recall command (#53) - #89
Merged
Merged
Conversation
Restore the live recall switch, preserve operator settings, respect teleport cancellation, and track recalled players for back. Add command, permission, configuration reload and localization regressions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Recognise the v1.0.0 generated recall comment during language refresh while preserving operator edits and disabled values. Cover the historical comment independently from current translations and register its exact migration literal. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve the FEATURES.md and README.md conflicts with the IP-ban commands from #88 mechanically: keep both README sections, and set the command inventory counts to the merged tree (42 executors, 62 mappings, 63 command rows, 35 player-only and 7 console-capable classes). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Gate record before merge
|
wisdommen
marked this pull request as ready for review
November 7, 2026 04:58
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Target: UltiEssentials 2.1.0 (new feature)
Summary
Implement the previously missing
/recall <player>as a narrow, permission-gated staff summon. This is a small additive feature, prepared for the future 6.4.0 development cycle recorded in #53. Keep this pull request as a draft; no version bump is included.ultiessentials.recall.other; existing/backand/tpaheregrants do not authorize forced movement. The command is player-only and refuses self-targeting.features.recall.enabledwith its original defaulttrue, read on each invocation. Preserve an existingfalseand operator comments; configuration reload changes the already-constructed command's behavior.OwnTeleportsso the recalled player can return with separately permitted/back.Design
Recall is an immediate administrative summon, with no cooldown or warmup and no cross-world restriction.
/backalready covers returning to a previous location;/tpahereremains the consent-based alternative. Exact case-insensitive lookup follows Bukkit'sgetPlayerExactcontract, and the teleport outcome follows Bukkit's success return rather than predicting success. No new service, persistence, scheduled task, schema or dependency is introduced.Issue reconciliation
RecallCommandand restored the consumed configuration key.ultiessentials.recall.other; self-service grants remain insufficient and vanish visibility is respected.Threat model
The change defends against unintended target selection, self-service permission escalation, vanished-player disclosure, false teleport-success reports and operator-setting loss during ordinary commands, configuration reloads and plugin-cancelled teleports.
Tests
mvn -q test -Dtest=UltiEssentialsRemovedConfigKeyTest— 22 tests, 7 expected failures, 0 errors, reproducing the missing live key and obsolete warnings.mvn -q test -Dtest=RecallCommandTest,UltiEssentialsRemovedConfigKeyTest,EssentialsConfigCommentsTest,BackOwnTeleportsTest,OtherPlayerPermissionTest,UltiEssentialsLanguageCatalogueTest,UltiEssentialsCjkLiteralScopeTest— 146 tests, 0 failures/errors/skips.mvn -B -T 1 clean verify— 1375 tests, 0 failures, 0 errors, 0 skipped; all coverage checks passed.RecallCommandline coverage 100% (26/26), branch coverage 93.75% (15/16)./backrecord, and a successful summon records the target's origin rather than the invoker's. Real permission-validator tests cover denial and delegated non-operator access; real configuration reload tests cover legacyfalse, comment preservation and runtime toggling.EssentialsConfigCommentsTest#releaseOneRecallCommentFollowsTheLanguagereproduced the missing migration (1 test, 1 failure, 0 errors/skips before the fix). The comments suite then passed all 7 tests. It covers English/Chinese refresh, preservation of operator-edited comments andfalse, and byte-stable repeated loads.previousCommentsand its single documented CJK exemption insrc/test/resources/i18n/cjk-literal-exemptions.tsv.git diff --checkpassed; Java 8 target and existing line endings preserved.UAT: required — this introduces a player/operator-visible command, permission and configuration behavior, and actual Paper command registration, teleport events and cross-world movement need real-server verification.
Known limitations
The UAT checklist includes positive and negative recall cases. Unit/MockBukkit results do not establish real Paper command registration, teleport-event or cross-world behavior. This draft is not ready for merge or release.
Issue closure
Closes #53
🤖 Generated with Claude Code