9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-31 12:56:39 +00:00

/cosmetic apply no longer gives errors

This commit is contained in:
LoJoSho
2022-12-29 13:57:02 -06:00
parent 75fc462167
commit ee2d46c1e1

View File

@@ -68,6 +68,11 @@ public class CosmeticCommand implements CommandExecutor {
if (sender instanceof Player) player = ((Player) sender).getPlayer();
if (args.length >= 3) player = Bukkit.getPlayer(args[2]);
if (args.length == 1) {
MessagesUtil.sendMessage(player, "not-enough-args");
return true;
}
cosmetic = Cosmetics.getCosmetic(args[1]);
if (cosmetic == null) {