SimpleEssential/src/cn/citycraft/SimpleEssential/utils/EffectUtil.java

38 lines
697 B
Java
Raw Normal View History

/**
*
*/
package cn.citycraft.SimpleEssential.utils;
import org.bukkit.Effect;
import org.bukkit.Location;
/**
* @author
* 20158142:07:02
* TODO
*/
public class EffectUtil {
/**
*
*
* @param loc
* -
* @param range
* -
*/
public static void run(Location loc, long range, Effect... effects) {
try {
int i;
if (range < 2) {
range = 2;
}
for (i = 0; i < range; i++) {
for (Effect effect : effects) {
loc.getWorld().playEffect(loc, effect, 10, 100);
}
}
} catch (Exception e) {
}
}
}