mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Networking rework, further refactoring
This commit is contained in:
1 parent
1cebdac9b8
commit
4c90e5498c
88 files changed
+1116
-1364
No files matched your search
@@ -1,7 +1,7 @@
|
||||
package net.william278.huskhomes.command;
|
||||
|
||||
import net.william278.huskhomes.HuskHomes;
|
||||
import net.william278.huskhomes.player.OnlineUser;
|
||||
import net.william278.huskhomes.user.OnlineUser;
|
||||
import net.william278.huskhomes.request.TeleportRequest;
|
||||
import net.william278.huskhomes.util.Permission;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -30,7 +30,7 @@ public class TpaCommand extends CommandBase implements TabCompletable {
|
||||
.sendTeleportRequest(onlineUser, args[0], TeleportRequest.RequestType.TPA)
|
||||
.thenAccept(sent -> {
|
||||
if (sent.isEmpty()) {
|
||||
if (args[0].equalsIgnoreCase(onlineUser.username)) {
|
||||
if (args[0].equalsIgnoreCase(onlineUser.getUsername())) {
|
||||
plugin.getLocales().getLocale("error_teleport_request_self")
|
||||
.ifPresent(onlineUser::sendMessage);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user