LSpawn

Spawn & respawn management plugin.

10 downloads

LSpawn

A lightweight spawn & respawn management plugin ยท built for Paper / Folia

LSpawn is a plugin for spawn point management and death respawn control, fully adapted to Folia's region-threading model.

  • ๐ŸŽฏ Target server: Paper / Folia 26.1 (api-version: 26.1)
  • โ˜• Requires Java 25+
  • โœ๏ธ Author: Dainsleif
  • ๐Ÿ“„ License: GPL-3.0

โœจ Features

  • /spawn โ€” teleport to the spawn point with one command
  • /setspawn / /delspawn โ€” set / remove the main spawn point
  • /setfirstspawn / /delfirstspawn โ€” set / remove the first-join spawn point (new players are sent here on their first join)
  • Death respawn control โ€” respawn at spawn by default; optionally keep bed / respawn anchor respawn points
  • Optional: teleport players to spawn on every join
  • /lspawn reload โ€” hot-reload the configuration
  • Built-in bilingual messages (language: zh_cn | en_us, MiniMessage, freely editable)

๐Ÿ›  Commands & Permissions

Command Description Permission Default
/spawn Teleport to spawn lspawn.spawn everyone
/setspawn Set the main spawn (current position) lspawn.setspawn OP
/delspawn Remove the main spawn lspawn.delspawn OP
/setfirstspawn Set the first-join spawn lspawn.setfirstspawn OP
/delfirstspawn Remove the first-join spawn lspawn.delfirstspawn OP
/lspawn reload Reload configuration lspawn.reload OP

All nodes are prefixed lspawn. and can be granted / revoked individually via a permissions plugin such as LuckPerms.

โš™๏ธ Configuration

Spawn data is stored in config.yml (also writable via commands). Key options:

language: zh_cn              # message language: zh_cn / en_us
debug: false                 # debug logging (for troubleshooting)

respawn:
  at-spawn: true             # respawn at spawn (default fallback)
  at-bed: false              # keep bed respawn points
  at-anchor: false           # keep respawn-anchor respawn points

join:
  teleport-to-spawn: false   # teleport to spawn on every join

The messages section ships both zh_cn and en_us MiniMessage sets, freely editable (placeholders: {world} {x} {y} {z}).

๐Ÿงต Folia Compatibility

  • plugin.yml declares folia-supported: true
  • All teleports use teleportAsync, which is thread-safe
  • Note: Folia disables the vanilla respawn path that fires PlayerRespawnEvent and uses its own respawn flow instead. This plugin therefore implements respawn on Folia by writing a forced respawn location at death plus a post-respawn fallback teleport. respawn.at-bed / respawn.at-anchor preserve real bed / anchor respawn points on Folia via a block check at death (fully functional on Paper)
  • First-join / join teleports are deferred by 1 tick to avoid teleporting during placeNewPlayer

๐Ÿ“„ License

GPL-3.0

No gallery available for this project.