Replace raw boolean in flight-toggle message with readable wording - #12
Conversation
The confirmation shown after /fly concatenated the boolean returned by getAllowFlight(), so players saw "Flight toggled to true" or "Flight toggled to false". The post-toggle state is now selected in words: "Flight enabled." or "Flight disabled." Closes #8 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Self-reviewA reviewer was requested from Copilot and could not be resolved ( Rubric
Observations folded in from the diff
Merge postureOne do-not-auto-merge path is matched: This review was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
Summary
/flyconfirmation message no longer concatenates thebooleanreturned bygetAllowFlight(). The post-toggle state is selected in words, soFlight enabled.orFlight disabled.is shown instead ofFlight toggled to true/Flight toggled to false.### Changedbullet recording the new wording was added under## [Unreleased]inCHANGELOG.md, since the message is user-visible output.No other behaviour was altered: the console guard, the permission check, the permission node, the command label, and every return value are untouched.
Validation
Mechanical checks (run, output read)
grep -n '^main:' plugin.ymlmain: me.Daniel.FlyCommand.Main<package>.<class>below and matchesme/Daniel/FlyCommand/Main.javaon diskgrep -n '^package ' me/Daniel/FlyCommand/Main.javapackage me.Daniel.FlyCommand;grep -n 'public class ' me/Daniel/FlyCommand/Main.javapublic class Main extends JavaPlugin {grep -rn 'hasPermission(' me/Daniel/FlyCommand/Main.javaplayer.hasPermission("FlyCommand.fly")grep -n 'FlyCommand.fly' plugin.yml USER_GUIDE.md COMMANDS.mdgrep -n 'equalsIgnoreCase(' me/Daniel/FlyCommand/Main.javalabel.equalsIgnoreCase("fly")commands:still declares theFlykeypython3 -c "import yaml; yaml.safe_load(open('plugin.yml'))"plugin.yml parsesCI is reported for completeness only.
.github/workflows/build.ymlcontains a singleactions/checkout@v4step and zerorun:steps, so a green check confirms only that the repository could be checked out. It is not verification of anything in this diff, and it is not being treated as such (see #9).On-server reproduction recipe (UNVERIFIED here)
Nothing in this repository can compile or run the plugin, so the changed message has not been executed. The following must be carried out by a human before merge:
README.md§ Building, against a Spigot API jar for Minecraft 1.13 or newer, at a release level the target server's runtime can load.FlyCommand.jarin a Spigot or Paper server'splugins/folder and start the server.FlyCommand.fly, whose declared default isop) and run/fly.Flight toggled to trueFlight enabled.— and flight is actually granted./flya second time.Flight toggled to falseFlight disabled.— and flight is actually revoked.FlyCommand.flyand run/fly; the alertAlert: Permission 'FlyCommand.fly' required.must still be the only message shown./flyfrom the server console;Alert: Can't be used by console.must still be shown and no error logged.Deferred work
#9(no build system, checkout-only CI) was left untouched this cycle. It is a charter-level change to the declared stack — adding a build file, relocating the source tree, and amending agent-loaded guidance — and maintainer authorization is required before it is started.Closes #8
This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
drafted by Claude on behalf of Daniel Stephenson