File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/spawn Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 11package com.mairwunnx.projectessentials.spawn
22
33import com.mairwunnx.projectessentials.core.EssBase
4+ import com.mairwunnx.projectessentials.core.backlocation.BackLocationProvider
45import com.mairwunnx.projectessentials.home.HomeAPI
56import com.mairwunnx.projectessentials.permissions.permissions.PermissionsAPI
67import com.mairwunnx.projectessentials.spawn.commands.SetSpawnCommand
@@ -80,6 +81,7 @@ class EntryPoint : EssBase() {
8081 @SubscribeEvent(priority = EventPriority .HIGHEST )
8182 fun onPlayerRespawn (event : PlayerEvent .PlayerRespawnEvent ) {
8283 val player = event.player as ServerPlayerEntity
84+ BackLocationProvider .commit(player)
8385
8486 fun teleportToSpawnOrBed () {
8587 if (player.bedPosition.isPresent) {
You can’t perform that action at this time.
0 commit comments