private ParticleStorage getParticleByIdentifier(String identifier) { String path = "Particles." + identifier + '.'; String item = this.config.getString(path + "Item"); return new ParticleStorage( this.plugin, identifier, new CustomItem( Parsing.parseMaterial(item), 1, Parsing.parseData(item), Placeholders.parse(this.config.getString(path + "Name")), Placeholders.parse(this.config.getString(path + "Description"))), this.config.getInt(path + "Position"), this.config.getString(path + "Permission"), this.config.getString(path + "Particle"), this.config.getInt(path + "ID"), this.config.getInt(path + "Data"), (float) this.config.getDouble(path + "Speed"), ParticleShape.valueOf(this.config.getString(path + "Shape").toUpperCase())); }