Examples/Example02
Example 2
Graveyard example. Setup one world with multiple "graveyard" spawns and when a player dies, they respawn at the nearest graveyard. Other worlds function as default home/spawn behavior.
# config.yml events: onDeath: - homeMultiWorld - spawnLocalWorld world: myworld: onDeath: - spawnNearest
With this setting, players who die on world "myworld" will spawn at the nearest spawn set to their death. You can set multiple named spawns on a single world using the "/setspawn <name>" command, so you could "/setspawn graveyard1", "/setspawn graveyard2", etc for multiple spawn points and this strategy will spawn the player at the closest one.
If the players dies on some world other than "myworld" the default "onDeath" strategy chain would be used.
Comments