Skip to content

Commit bcdc4bc

Browse files
committed
Supporting /back command added.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 4c7e606 commit bcdc4bc

File tree

1 file changed

+2
-0
lines changed
  • src/main/kotlin/com/mairwunnx/projectessentials/home/commands

1 file changed

+2
-0
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/home/commands/HomeCommand.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.mairwunnx.projectessentials.home.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
@@ -89,6 +90,7 @@ object HomeCommand {
8990
DimensionType.getById(dimId) ?: DimensionType.OVERWORLD
9091
)
9192
if (player.world.worldInfo.worldName == clientWorld) {
93+
BackLocationProvider.commit(player)
9294
player.teleport(targetWorld, xPos, yPos, zPos, yaw, pitch)
9395
sendMessage(player.commandSource, "success", home.home)
9496
} else {

0 commit comments

Comments
 (0)