mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Fix back command using random teleport pricing
This commit is contained in:
1 parent
d1c1efe753
commit
8e75a8dbdc
1 file changed
+2
-2
@@ -22,9 +22,9 @@ public class BackCommand extends CommandBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Teleport the player
|
// Teleport the player
|
||||||
plugin.getTeleportManager().timedTeleport(onlineUser, position, Settings.EconomyAction.RANDOM_TELEPORT)
|
plugin.getTeleportManager().timedTeleport(onlineUser, position, Settings.EconomyAction.BACK_COMMAND)
|
||||||
.thenAccept(result -> plugin.getTeleportManager()
|
.thenAccept(result -> plugin.getTeleportManager()
|
||||||
.finishTeleport(onlineUser, result, Settings.EconomyAction.RANDOM_TELEPORT));
|
.finishTeleport(onlineUser, result, Settings.EconomyAction.BACK_COMMAND));
|
||||||
},
|
},
|
||||||
() -> plugin.getLocales().getLocale("error_no_last_position").ifPresent(onlineUser::sendMessage)));
|
() -> plugin.getLocales().getLocale("error_no_last_position").ifPresent(onlineUser::sendMessage)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user