Skip to content

Commit 2cbaae9

Browse files
committed
Back command compatibility added for spawn command.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent abea85a commit 2cbaae9

File tree

1 file changed

+3
-0
lines changed
  • src/main/kotlin/com/mairwunnx/projectessentials/spawn/commands

1 file changed

+3
-0
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/spawn/commands/SpawnCommand.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.mairwunnx.projectessentials.spawn.commands
22

33
import com.mairwunnx.projectessentials.cooldown.essentials.CommandsAliases
4+
import com.mairwunnx.projectessentials.core.backlocation.BackLocationProvider
45
import com.mairwunnx.projectessentials.core.extensions.isPlayerSender
56
import com.mairwunnx.projectessentials.core.extensions.sendMsg
67
import com.mairwunnx.projectessentials.core.helpers.ONLY_PLAYER_CAN
@@ -66,6 +67,8 @@ object SpawnCommand {
6667
}
6768

6869
fun moveToSpawn(player: ServerPlayerEntity) {
70+
BackLocationProvider.commit(player)
71+
6972
val xPos = SpawnModelBase.spawnModel.xPos
7073
val yPos = SpawnModelBase.spawnModel.yPos
7174
val zPos = SpawnModelBase.spawnModel.zPos

0 commit comments

Comments
 (0)