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");
|
||||
ConfigurationSection color = cs.getConfigurationSection("color");
|
||||
ParticleBuilder particle = new ParticleBuilder(Particle.valueOf(cs.getString("particle")));
|
||||
particle.extra(cs.getDouble("extra"));
|
||||
if (color != null) {
|
||||
particle = particle.color(color.getInt("r"), color.getInt("g"), color.getInt("b"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ public class FrameSpawnerLocation extends BukkitRunnable {
|
|||
iterator.next().spawn(location, rotation);
|
||||
else if (amount != 0) {
|
||||
iterator = frames.iterator();
|
||||
if (amount > 0)
|
||||
amount--;
|
||||
if (repeatDelay <= 0)
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public class FrameSpawnerPlayer extends BukkitRunnable {
|
|||
return;
|
||||
}
|
||||
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();
|
||||
if (Config.DEBUG)
|
||||
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.inventory.ItemStack;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public enum APartType { //TODO add description?
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user