Answers for "bukkit spawn fireworks"

0

how to check if mysql is installed ubuntu

#Type
mysql --version
#to see if it is installed.
Posted by: Guest on June-26-2021
7

how to check mysql version ubuntu

# Console:
mysql -V
mysql --version
# Query:
SHOW VARIABLES LIKE "%version%";
# PHPMyAdmin Interface, on the right side:
> Database server > Server version
Posted by: Guest on August-13-2021
2

spigot spawn firework

public static void spawnFireworks(Location location, int amount) {
   Location loc = location;
   Firework fw = (Firework) loc.getWorld().spawnEntity(loc, EntityType.FIREWORK);
   FireworkMeta fwm = fw.getFireworkMeta();

  fwm.setPower(2);
  fwm.addEffect(FireworkEffect.builder().withColor(Color.LIME).flicker(true).build());

  fw.setFireworkMeta(fwm);
  fw.detonate();

  for(int i = 0;i<amount; i++){
    Firework fw2 = (Firework) loc.getWorld().spawnEntity(loc, EntityType.FIREWORK);
    fw2.setFireworkMeta(fwm);
  }
}
Posted by: Guest on May-14-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language