Skip to content

feat(teleport): add permission-gated recall command (#53) - #89

Merged
wisdommen merged 4 commits into
masterfrom
fix/issue-53
Nov 7, 2026
Merged

wisdommen merged 4 commits into
masterfrom
fix/issue-53

Conversation

@wisdommen

@wisdommen wisdommen commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

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.

  • Bring an exact-name online target to the invoking player's current position and facing, including across worlds. The invoker stays still.
  • Require ultiessentials.recall.other; existing /back and /tpahere grants do not authorize forced movement. The command is player-only and refuses self-targeting.
  • Restore features.recall.enabled with its original default true, read on each invocation. Preserve an existing false and operator comments; configuration reload changes the already-constructed command's behavior.
  • Treat an unseen vanished target as offline and omit them from completion; exclude the invoker from completion too.
  • Respect Bukkit teleport cancellation and its boolean result. Notify both players only on success; report failure to the invoker otherwise. Reuse OwnTeleports so the recalled player can return with separately permitted /back.
  • Remove the obsolete recall-removed warning, retain the existing removed-setting helper signature, and update English/Chinese messages, README, feature inventory and executable UAT rows.

Design

Recall is an immediate administrative summon, with no cooldown or warmup and no cross-world restriction. /back already covers returning to a previous location; /tpahere remains the consent-based alternative. Exact case-insensitive lookup follows Bukkit's getPlayerExact contract, 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

Item Classification Resolution
Missing recall command and live switch VALID Added RecallCommand and restored the consumed configuration key.
Earlier removal of the misleading 6.3.0 setting FIXED The earlier removal was correct; now that recall exists, its removed-key warning is retired.
Undefined recall meaning VALID Exact online target is summoned to the player invoker; no self or console variant.
Sender and target authority VALID Dedicated ultiessentials.recall.other; self-service grants remain insufficient and vanish visibility is respected.
Cooldown, warmup and cross-world policy VALID Immediate staff action, no cooldown/warmup, cross-world allowed, Bukkit cancellation respected.
Future milestone placement FIXED Remains draft for the future development cycle; no release or version change.

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

  • RED before product edits: mvn -q test -Dtest=UltiEssentialsRemovedConfigKeyTest — 22 tests, 7 expected failures, 0 errors, reproducing the missing live key and obsolete warnings.
  • GREEN: mvn -q test -Dtest=RecallCommandTest,UltiEssentialsRemovedConfigKeyTest,EssentialsConfigCommentsTest,BackOwnTeleportsTest,OtherPlayerPermissionTest,UltiEssentialsLanguageCatalogueTest,UltiEssentialsCjkLiteralScopeTest — 146 tests, 0 failures/errors/skips.
  • Full gate: mvn -B -T 1 clean verify — 1375 tests, 0 failures, 0 errors, 0 skipped; all coverage checks passed.
  • JaCoCo: bundle line coverage 97.06% (3105/3199), branch coverage 85.15% (1370/1609), 104 classes; RecallCommand line coverage 100% (26/26), branch coverage 93.75% (15/16).
  • Separate tests prove a false teleport return emits no success, a cancelled Bukkit event creates no /back record, 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 legacy false, comment preservation and runtime toggling.
  • Historical-comment regression: EssentialsConfigCommentsTest#releaseOneRecallCommentFollowsTheLanguage reproduced 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 and false, and byte-stable repeated loads.
  • Register the byte-exact v1.0.0 recall comment in previousComments and its single documented CJK exemption in src/test/resources/i18n/cjk-literal-exemptions.tsv.
  • git diff --check passed; 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

wisdommen and others added 4 commits November 6, 2026 21:02
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]>
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]>
@wisdommen

Copy link
Copy Markdown
Member Author

Gate record before merge

  • Review: one cross-family code review (Claude Opus) of head a62ab9b; verdict FIX-NEEDED, now resolved.
  • Findings:
    • P2 — the v1.0.0 comment above features.recall.enabled was not registered as a previous comment, so upgraded servers kept the old Chinese comment: fixed in 0d5e36e (previousComments plus a RED→GREEN upgrade-comment test).
  • UAT (real server, clean build of 0d5e36e, JAR SHA-256 8b446afdf74bdea3f785318922677c5493e557043ff312b78fc111837eca2329): 7 pass / 0 fail / 0 blocked. The first run failed the no-permission row because its Expected assumed a framework refusal message, while the command is hidden from players without ultiessentials.recall.other; 323020e corrects that row's Expected (UAT-CHECKLIST.md only) and the row was re-run on the same JAR and passed.
  • CI: 2/2 green on the head b05b6d1 (master merged in after feat(ban): add verified IP ban commands (#63) #88; README sections kept side by side and the FEATURES command-inventory counts set to the merged tree — documentation only, no product file in conflict).

@wisdommen
wisdommen marked this pull request as ready for review November 7, 2026 04:58
@wisdommen
wisdommen merged commit 7c37acc into master Nov 7, 2026
2 checks passed
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.

Feature request: a /recall command (the removed features.recall.enabled setting described one)

1 participant