From 3f2473aac5aaee272aadebf5a58c37e2622258e7 Mon Sep 17 00:00:00 2001 From: aro Date: Mon, 16 Jan 2023 18:32:17 +0100 Subject: [PATCH] fix(command): oob --- .../net/artelnatif/nicko/command/sub/NickoDebugSubCmd.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nicko-core/src/main/java/net/artelnatif/nicko/command/sub/NickoDebugSubCmd.java b/nicko-core/src/main/java/net/artelnatif/nicko/command/sub/NickoDebugSubCmd.java index e42cdd2..c849bb3 100644 --- a/nicko-core/src/main/java/net/artelnatif/nicko/command/sub/NickoDebugSubCmd.java +++ b/nicko-core/src/main/java/net/artelnatif/nicko/command/sub/NickoDebugSubCmd.java @@ -17,16 +17,16 @@ public class NickoDebugSubCmd { name = args[1]; skin = args[2]; } else { - final String playerName = args[1]; - target = Bukkit.getPlayer(playerName); - if (args.length < 3) { sender.sendMessage(NickoBukkit.getInstance().getNickoConfig().getPrefix() + "§cMissing argument."); return; } + final String playerName = args[1]; name = args[2]; skin = args[3]; + + target = Bukkit.getPlayer(playerName); if (target == null) { sender.sendMessage(NickoBukkit.getInstance().getNickoConfig().getPrefix() + "§cSpecified player is offline."); return;