package com.censoredsoftware.censoredlib.util;

import org.bukkit.Effect;
import org.bukkit.Location;

public class Spigots
{
	public static void playParticle(Location location, Effect effect, int offsetX, int offsetY, int offsetZ, float speed, int particles, int viewRadius)
	{
		location.getWorld().spigot().playEffect(location, effect, 1, 1, offsetX, offsetY, offsetZ, speed, particles, viewRadius);
	}
}

package com.censoredsoftware.censoredlib.util;

import org.bukkit.Effect;
import org.bukkit.Location;

public class Spigots
{
	public static void playParticle(Location location, Effect effect, int offsetX, int offsetY, int offsetZ, float speed, int particles, int viewRadius)
	{
		try
		{
			location.getWorld().spigot().playEffect(location, effect, 1, 1, offsetX, offsetY, offsetZ, speed, particles, viewRadius);
		}
		catch(Exception ignored)
		{}
	}
}

Fix for spigot API not being finished yet.
Fix for spigot API not being finished yet.
