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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user