Back Location

The Back Location module gives you the tools to help players return to where they were. Whether they just warped away or died unexpectedly, you can control exactly how and when they can get back to their previous spots.


Commands

The table below shows default command settings. Please see the Commands Guide on how to toggle and customize SunLight's commands.

Standalone Commands [?]

Command Arguments Description Permission Default State
/back player -s Teleport to the previous location. sunlight.backlocation.command.back
sunlight.backlocation.command.back.others
ON

Standalone Commands [?]

Command Arguments Description Permission Default State
/deathback /dback player -s Teleport to the latest death location. sunlight.backlocation.command.deathback
sunlight.backlocation.command.deathback.others
ON

Permissions

Here's a list of all module permissions. Top-level wildcard * permissions grants access to all child permissions.

  • sunlight.backlocation.* - Full access.
    • sunlight.backlocation.command.* - Full command access.
      • sunlight.backlocation.command.back - Grants access to back command.
      • sunlight.backlocation.command.back.others - Grants access to player argument in back command.
      • sunlight.backlocation.command.deathback - Grants access to deathback command.
      • sunlight.backlocation.command.deathback.others - Grants access to player argument in deathback command.
    • sunlight.backlocation.bypass.* - Bypass all restrictions.
      • sunlight.backlocation.bypass.previous.worlds - Allows to use back command for disabled worlds.
      • sunlight.backlocation.bypass.previous.causes - Allows to use back command for disabled teleport causes.
      • sunlight.backlocation.bypass.death.causes - Allows to use deathback command for disabled teleport causes.

Placeholders

When this module is enabled, the following placeholders will be registered in PlaceholderAPI plugin:

Placeholder Description
sunlight_backlocation_has_previous Returns localized Yes or No depends on whether player has an active previous location.
sunlight_backlocation_has_death Returns localized Yes or No depends on whether player has an active death location.
sunlight_backlocation_previous_expire_in Returns formatted time like 1h 2min indicating previous location expiration time.
sunlight_backlocation_death_expire_in Returns formatted time like 1h 2min indicating death location expiration time.