mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-19 15:09:19 +00:00
fix: dye menu through command not checking if there is a provider available
This commit is contained in:
@@ -334,7 +334,11 @@ public class CosmeticCommand implements CommandExecutor {
|
||||
}
|
||||
user.addCosmetic(cosmetic, color); // #FFFFFF
|
||||
} else {
|
||||
DyeMenuProvider.openMenu(player, user, cosmetic);
|
||||
if (DyeMenuProvider.hasMenuProvider()) {
|
||||
DyeMenuProvider.openMenu(player, user, cosmetic);
|
||||
} else {
|
||||
if (!silent) MessagesUtil.sendMessage(player, "invalid-color");
|
||||
}
|
||||
}
|
||||
}
|
||||
case ("setwardrobesetting") -> {
|
||||
|
||||
Reference in New Issue
Block a user