use of com.elmakers.mine.bukkit.magic.BaseMagicProperties in project MagicPlugin by elBukkit.
the class WandProperties method getProperty.
@Override
@Nullable
public Object getProperty(String key) {
Object value = null;
BaseMagicProperties storage = getStorage(key);
if (storage != null && storage != this) {
value = storage.getProperty(key);
}
if (value == null) {
value = super.getProperty(key);
}
if (value == null && wandTemplate != null) {
value = wandTemplate.getProperty(key);
}
return value;
}
Aggregations