mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Further refactoring, move away from using future thread pool
This commit is contained in:
1 parent
4c90e5498c
commit
39e0b25d46
56 files changed
+737
-1713
No files matched your search
@@ -19,7 +19,7 @@ public class BackCommand extends CommandBase {
|
||||
plugin.getDatabase().getLastPosition(onlineUser).thenAccept(lastPosition ->
|
||||
lastPosition.ifPresentOrElse(position -> Teleport.builder(plugin, onlineUser)
|
||||
.setTarget(position)
|
||||
.setEconomyActions(EconomyHook.EconomyAction.BACK_COMMAND)
|
||||
.setEconomyActions(EconomyHook.Action.BACK_COMMAND)
|
||||
.toTimedTeleport()
|
||||
.thenApply(TimedTeleport::execute),
|
||||
() -> plugin.getLocales().getLocale("error_no_last_position").ifPresent(onlineUser::sendMessage)));
|
||||
|
||||
Reference in new issue
Block a user