Skip to content

FastEdit 1.2.0

Choose a tag to compare

@Wyze3306 Wyze3306 released this 05 Aug 17:51
· 13 commits to main since this release

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 FeCommand constructor carries the permission, so all 28 commands are covered at once. SimpleCommandMap refuses the dispatch before execution, and getDataForPlayer returns null for 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 //x aliases go through Server.executeCommand, so they get the same check.
  • Tools — WandListener takes 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.