9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 04:19:28 +00:00

upapply to unapply

This commit is contained in:
LoJoSho
2023-01-03 16:50:23 -06:00
parent b682cda0da
commit 38589d4ac1

View File

@@ -110,11 +110,11 @@ public class CosmeticCommand implements CommandExecutor {
if (sender instanceof Player) player = ((Player) sender).getPlayer();
if (args.length >= 3) player = Bukkit.getPlayer(args[2]);
if (!EnumUtils.isValidEnum(CosmeticSlot.class, args[1])) {
if (!EnumUtils.isValidEnum(CosmeticSlot.class, args[1].toUpperCase())) {
MessagesUtil.sendMessage(sender, "invalid-slot");
return true;
}
cosmeticSlot = CosmeticSlot.valueOf(args[1]);
cosmeticSlot = CosmeticSlot.valueOf(args[1].toUpperCase());
if (player == null) {
MessagesUtil.sendMessage(sender, "invalid-player");