Skip to content

Commit a994d30

Browse files
committed
WarpCommand.kt: compatibility with back command added.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 1bc1ee6 commit a994d30

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/main/kotlin/com/mairwunnx/projectessentials/warps/commands

src/main/kotlin/com/mairwunnx/projectessentials/warps/commands/WarpCommand.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.mairwunnx.projectessentials.warps.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.helpers.throwOnlyPlayerCan
67
import com.mairwunnx.projectessentials.core.helpers.throwPermissionLevel
@@ -91,6 +92,7 @@ object WarpCommand {
9192
DimensionType.getById(dimId) ?: DimensionType.OVERWORLD
9293
)
9394
if (player.world.worldInfo.worldName == clientWorld) {
95+
BackLocationProvider.commit(player)
9496
player.teleport(targetWorld, xPos, yPos, zPos, yaw, pitch)
9597
sendMessage(player.commandSource, "success", warp.name)
9698
} else {

0 commit comments

Comments
 (0)