AntiSignEdit
Minecraft plugin that locks signs after a player finishes writing on them, preventing any future edits
AntiSignEdit
AntiSignEdit
A simple Folia-compatible Minecraft 1.21.x plugin that locks signs after a player finishes writing on them, preventing any future edits.
---
Features
- Locks signs the moment the sign GUI closes after placement - Automatically locks pre-existing signs (placed before the plugin was installed) on first interaction - Works with all sign types: classic signs, wall signs, and all hanging sign variants - Signs can still be broken normally - Ops and players with `antisignedit.bypass` can still edit signs freely - Configurable message shown when a player is blocked (or disable the message entirely) - Folia compatible via `RegionScheduler`
---
Permissions
| Permission | Default | Description | |-----------------------|---------|------------------------------------------| | `antisignedit.bypass` | op | Allows the player to bypass sign locking |
---
Configuration
Located at `plugins/AntiSignEdit/config.yml` after first run.
```yaml messages:
Set to false to silently block without sending any message
send-on-block: true
Supports full MiniMessage formatting
edit-blocked: "<red>This sign has been locked and cannot be edited." ```
How It Works
New signs: When a player closes the sign editing GUI, `SignChangeEvent` fires. A region-scheduled task (Folia-safe) immediately waxes the sign block after the event resolves. Waxed signs cannot be opened for editing in vanilla Minecraft.
Pre-existing signs: When a player right-clicks any unwaxed sign, the plugin waxes it on the spot before cancelling the interaction. This means old signs are retroactively locked on first touch.
Bypass: If the interacting player is an op (`player.isOp()`) or has the `antisignedit.bypass` permission, the interaction is not cancelled and they may edit freely.