mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +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
@@ -2,7 +2,7 @@ package net.william278.huskhomes.command;
|
||||
|
||||
import net.william278.huskhomes.HuskHomes;
|
||||
import net.william278.huskhomes.user.OnlineUser;
|
||||
import net.william278.huskhomes.request.TeleportRequest;
|
||||
import net.william278.huskhomes.teleport.TeleportRequest;
|
||||
import net.william278.huskhomes.util.Permission;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -27,7 +27,7 @@ public class TpaHereCommand extends CommandBase implements TabCompletable {
|
||||
|
||||
if (args.length == 1) {
|
||||
plugin.getRequestManager()
|
||||
.sendTeleportRequest(onlineUser, args[0], TeleportRequest.RequestType.TPA_HERE)
|
||||
.sendTeleportRequest(onlineUser, args[0], TeleportRequest.Type.TPA_HERE)
|
||||
.thenAccept(sent -> {
|
||||
if (sent.isEmpty()) {
|
||||
if (args[0].equalsIgnoreCase(onlineUser.getUsername())) {
|
||||
|
||||
Reference in new issue
Block a user