mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Fix tphere not returning an error for unresolved players
This commit is contained in:
1 parent
8854d3569f
commit
10b398b783
9 files changed
+56
-24
No files matched your search
@@ -77,7 +77,7 @@ public class WarpCommand extends CommandBase implements TabCompletable, ConsoleE
|
||||
plugin.getLoggingAdapter().log(Level.WARNING, "Invalid syntax. Usage: warp <player> <warp>");
|
||||
return;
|
||||
}
|
||||
final OnlineUser playerToTeleport = plugin.findPlayer(args[0]).orElse(null);
|
||||
final OnlineUser playerToTeleport = plugin.findOnlinePlayer(args[0]).orElse(null);
|
||||
if (playerToTeleport == null) {
|
||||
plugin.getLoggingAdapter().log(Level.WARNING, "Player not found: " + args[0]);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user