Fixed bugs added stuff

This commit is contained in:
Teriuihi 2022-06-05 05:27:46 +02:00
parent 6403f024cd
commit b1bdfbcb99
4 changed files with 4 additions and 4 deletions

View File

@ -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"));
}

View File

@ -32,7 +32,8 @@ public class FrameSpawnerLocation extends BukkitRunnable {
iterator.next().spawn(location, rotation);
else if (amount != 0) {
iterator = frames.iterator();
amount--;
if (amount > 0)
amount--;
if (repeatDelay <= 0)
return;
try { //Wait before repeating the frames

View File

@ -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.");

View File

@ -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?