Fixed bugs added stuff
This commit is contained in:
parent
6403f024cd
commit
b1bdfbcb99
|
|
@ -97,6 +97,7 @@ public class ParticleConfig extends AbstractConfig {
|
||||||
cs.getString("particle");
|
cs.getString("particle");
|
||||||
ConfigurationSection color = cs.getConfigurationSection("color");
|
ConfigurationSection color = cs.getConfigurationSection("color");
|
||||||
ParticleBuilder particle = new ParticleBuilder(Particle.valueOf(cs.getString("particle")));
|
ParticleBuilder particle = new ParticleBuilder(Particle.valueOf(cs.getString("particle")));
|
||||||
|
particle.extra(cs.getDouble("extra"));
|
||||||
if (color != null) {
|
if (color != null) {
|
||||||
particle = particle.color(color.getInt("r"), color.getInt("g"), color.getInt("b"));
|
particle = particle.color(color.getInt("r"), color.getInt("g"), color.getInt("b"));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,8 @@ public class FrameSpawnerLocation extends BukkitRunnable {
|
||||||
iterator.next().spawn(location, rotation);
|
iterator.next().spawn(location, rotation);
|
||||||
else if (amount != 0) {
|
else if (amount != 0) {
|
||||||
iterator = frames.iterator();
|
iterator = frames.iterator();
|
||||||
amount--;
|
if (amount > 0)
|
||||||
|
amount--;
|
||||||
if (repeatDelay <= 0)
|
if (repeatDelay <= 0)
|
||||||
return;
|
return;
|
||||||
try { //Wait before repeating the frames
|
try { //Wait before repeating the frames
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ public class FrameSpawnerPlayer extends BukkitRunnable {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ParticleSet activeParticleSet = playerSettings.getParticles(aPartType);
|
ParticleSet activeParticleSet = playerSettings.getParticles(aPartType);
|
||||||
if (activeParticleSet == null || !activeParticleSet.getParticleId().equalsIgnoreCase(uniqueId) || playerSettings.hasActiveParticles()) {
|
if (activeParticleSet == null || !activeParticleSet.getParticleId().equalsIgnoreCase(uniqueId) || !playerSettings.hasActiveParticles()) {
|
||||||
this.cancel();
|
this.cancel();
|
||||||
if (Config.DEBUG)
|
if (Config.DEBUG)
|
||||||
Logger.info("Stopped repeating task due to player switching/disabling particles.");
|
Logger.info("Stopped repeating task due to player switching/disabling particles.");
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ package com.alttd.objects;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Optional;
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
public enum APartType { //TODO add description?
|
public enum APartType { //TODO add description?
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user