Move this to the skill itself.

This commit is contained in:
GJ
2013-10-28 16:32:40 -04:00
parent 9b3ae5c729
commit cc2c9eb21d
4 changed files with 8 additions and 30 deletions

View File

@ -16,7 +16,6 @@ import org.bukkit.entity.Player;
import org.bukkit.inventory.meta.FireworkMeta;
import com.gmail.nossr50.config.Config;
import com.gmail.nossr50.datatypes.skills.SkillType;
public final class ParticleEffectUtils {
@ -80,11 +79,7 @@ public final class ParticleEffectUtils {
}
}
public static void runescapeModeCelebration(Player player, SkillType skill) {
fireworkParticleShower(player, skill.getRunescapeModeColor());
}
private static void fireworkParticleShower(Player player, Color color) {
public static void fireworkParticleShower(Player player, Color color) {
Location location = player.getLocation();
location.setY(location.getY() + (player.isInsideVehicle() ? 1.0 : -1.0));
location.setPitch(-90);