From c8bc900888ba2626e3fbe222cc76b6e7a4624799 Mon Sep 17 00:00:00 2001 From: RitzKid76 Date: Wed, 26 Mar 2025 16:25:39 -0400 Subject: [PATCH] remove offline player getter from CommandTPO --- .../java/com/earth2me/essentials/commands/Commandtpo.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandtpo.java b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandtpo.java index 804117308..00b0e188c 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandtpo.java +++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandtpo.java @@ -1,6 +1,5 @@ package com.earth2me.essentials.commands; -import com.earth2me.essentials.OfflinePlayer; import com.earth2me.essentials.User; import com.earth2me.essentials.Util; import org.bukkit.Server; @@ -18,11 +17,7 @@ public void run(Server server, User user, String commandLabel, String[] args) th } //Just basically the old tp command - User p = getPlayer(server, args, 0, true); - // Check if user is offline - if (p.getBase() instanceof OfflinePlayer) { - throw new NoSuchFieldException(Util.i18n("playerNotFound")); - } + User p = getPlayer(server, args, 0); // Verify permission if (!p.isHidden() || user.isAuthorized("essentials.teleport.hidden")) {