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

@@ -272,16 +272,27 @@
 ius)%0A%09%7B%0A
+%09%09try%0A%09%09%7B%0A%09
 %09%09locati
@@ -407,13 +407,49 @@
 adius);%0A
+%09%09%7D%0A%09%09catch(Exception ignored)%0A%09%09%7B%7D%0A
 %09%7D%0A%7D%0A

Fix for spigot API not being finished yet.