mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-30 20:39:13 +00:00
dyable option in cosmetic
This commit is contained in:
@@ -10,6 +10,7 @@ public class Cosmetic {
|
||||
private String permission;
|
||||
private CosmeticSlot slot;
|
||||
private boolean equipable; // This simply means if a player can put it on their body.
|
||||
private boolean dyable;
|
||||
|
||||
protected Cosmetic(String id, ConfigurationNode config) {
|
||||
this.id = id;
|
||||
@@ -18,6 +19,7 @@ public class Cosmetic {
|
||||
setSlot(CosmeticSlot.valueOf(config.node("slot").getString()));
|
||||
|
||||
setEquipable(false);
|
||||
setDyable(config.node("dyable").getBoolean(false));
|
||||
|
||||
Cosmetics.addCosmetic(this);
|
||||
}
|
||||
@@ -57,6 +59,15 @@ public class Cosmetic {
|
||||
return equipable;
|
||||
}
|
||||
|
||||
public void setDyable(boolean dyable) {
|
||||
this.dyable = dyable;
|
||||
}
|
||||
|
||||
public boolean isDyable() {
|
||||
return this.dyable;
|
||||
}
|
||||
|
||||
|
||||
public void update(CosmeticUser user) {
|
||||
// Override
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user