From 89c6951a93585bf599e1955b3e38c3ce59881867 Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Sat, 9 Sep 2023 11:38:02 -0500 Subject: [PATCH] fix: getOfflinePlayer always returns a notnull object --- .../com/hibiscusmc/hmccosmetics/command/CosmeticCommand.java | 1 - 1 file changed, 1 deletion(-) diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/command/CosmeticCommand.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/command/CosmeticCommand.java index 67f711f4..5ec014e3 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/command/CosmeticCommand.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/command/CosmeticCommand.java @@ -262,7 +262,6 @@ public class CosmeticCommand implements CommandExecutor { case ("dataclear") -> { if (args.length == 1) return true; OfflinePlayer selectedPlayer = Bukkit.getOfflinePlayer(args[1]); - if (selectedPlayer == null) return true; if (!sender.hasPermission("hmccosmetics.cmd.dataclear") && !sender.isOp()) { if (!silent) MessagesUtil.sendMessage(sender, "no-permission"); return true;