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

feat: send message if locations are not all setup

This commit is contained in:
LoJoSho
2023-05-24 15:03:41 -05:00
parent 7fcbbd6b5a
commit fcde8e7f25

View File

@@ -253,6 +253,10 @@ public class CosmeticUser {
MessagesUtil.sendMessage(getPlayer(), "not-near-wardrobe");
return;
}
if (!wardrobe.getLocation().hasAllLocations()) {
MessagesUtil.sendMessage(getPlayer(), "wardrobe-not-setup");
return;
}
PlayerWardrobeEnterEvent event = new PlayerWardrobeEnterEvent(this, wardrobe);
Bukkit.getPluginManager().callEvent(event);
if (event.isCancelled()) {