EssentialsX

EssentialsX

2M Downloads

Do nothing if "/home" is used when no home is set.

stapleshotz opened this issue ยท 3 comments

commented

EssentialsX version (/essentials): 2.0.1-b488

Server software (/version): 1.12.1-R0.1-SNAPSHOT

Currently, if a player uses "/home" and they have no home set or their bed home was destroyed etc. they are teleported to the spawn. That's great, but if you have a setup where players use beds as their homes exclusively, if those beds are destroyed the player has no way of knowing and is teleported to the spawn when they expect to go somewhere else. This can be annoying for many.

What I'd like to have happen: When a player uses "/home" and their home is not set, they don't get teleported anywhere and a message appears saying something like "You have no home set."

This used to be a feature in Essentials. In the config it looked like this:

If no home is set send you to bed or spawn when /home is used
spawn-if-no-home: true/false

commented

This was removed from the upstream Essentials a long time ago:

  • Added in dd164d2
    • Seems to have been refactored a lot in the 8 months it existed
  • Functionality removed in 4c2b9b8
  • Config option removed from ISettings in 256ce9e
  • Config option fully removed in edbac55

It doesn't look too difficult to reimplement this now, looking at the /home command class.

commented

On my server regular members cannot use /sethome, but can right click a bed and use '/home' or '/home bed' to teleport back to it. However like stapleshotz points out, when players move their bed and forget to reset their home, the command takes them back to the global spawn, which is unused on my server. If it was possible to instead set it so typing /home with no home set returns an error message (eg. "You do not have a home!") that would save some of my players a lot of confusion.

commented

This has been implemented in EssentialsX 2.17.1.19 and above.