Skip to content

Add a separate safety toggle for /sethome #6647

Open

Description

@semianarchymc

Feature description

Could /sethome have a safety toggle of its own? Something like sethome-safety: false would let players save the spot they're standing on. /home and /tpa would still use the usual checks when they teleport someone. The current behaviour could stay the default.

How the feature is useful

On SemiAnarchyMC, players get "The teleport destination is unsafe" when they try to save a home on a bottom slab or the lower step of a stair. We reproduced it on EssentialsX 2.22.1-dev+28-f8724e2 with Leaf 26.3. We saved both spots in dev and tried /home with teleport safety on. It took us back to the slab and moved the stair landing up to the top step. Current save check

force-disable-teleport-safety gets past the save error, but it also turns off safe landing checks for teleports. We carry a small patch just for /sethome. A separate setting would let us go back to the stock build.

Activity

  1. spa77k commented on Nov 18, 2026

    @spa77k

    I have an implementation of this ready and would like to open a PR if it's something you'd accept. Per CONTRIBUTING, I wanted to ask first.

    The shape I went with:

    • A new sethome-safety option in config.yml, default true, so current behavior doesn't change.
    • When it's false, /sethome skips the unsafe-location check. Nothing else changes: /home still follows teleport-safety, so with teleport-safety on, the player is brought back to the slab, and with it off, a teleport to an unsafe home is cancelled as it is today.
    • If teleport-safety and force-disable-teleport-safety are both true, /sethome already skips the check, and that stays as is.

    The change is one new getter in ISettings/Settings and one extra condition in Commandsethome, about 14 lines including the config comments. I tested it on Paper 26.1.2 with a bottom slab: the default rejects /sethome with "The teleport destination is unsafe", and with sethome-safety: false the home is saved.

    Is a PR for this welcome, and is sethome-safety an acceptable name?

  2. semianarchymc commented on Nov 18, 2026

    @semianarchymc
    Author

    Thanks for putting this together. sethome-safety defaulting to true fits what we were asking for. If the maintainers are happy with the approach, we can test the PR on Leaf 26.3 with bottom slabs and lower stairs, and confirm /home still applies its landing checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions