Repository navigation
FastEdit 1.2.0
Every command and every tool is now operator-only. Until now FastEdit declared no permission at all: any player could run //set or //paste, and the command map dispatched without a single check.
One permission, fastedit.use, declared in plugin.yml with default: op.
- Commands — the
FeCommandconstructor carries the permission, so all 28 commands are covered at once.SimpleCommandMaprefuses the dispatch before execution, andgetDataForPlayerreturnsnullfor a non-op: the commands no longer even appear in the Bedrock client's autocomplete.execute()re-tests the permission for callers that would not go through the command map. The//xaliases go throughServer.executeCommand, so they get the same check. - Tools —
WandListenertakes the same gate. The axe, the brushes, the inspector and the expand rod carry the same power as the commands without going through them: a brush handed to a player bypassed the permission outright.
Intended side effect: a non-op player can break blocks with a wooden axe again. The listener used to cancel the break for anyone holding an axe, op or not.
To open FastEdit up to a non-op rank (a builder role, for instance), granting it fastedit.use is enough.
No editing change: same commands, same selections, same schematics. Still PNX 3.0.x.