Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. package com.knockturnmc.nerdyspells.spells;
  2.  
  3. import com.knockturnmc.spellapi.Magic;
  4. import com.knockturnmc.spellapi.Spell;
  5. import com.knockturnmc.spellapi.SpellInfo;
  6. import com.knockturnmc.spellapi.enums.SpellType;
  7. import com.knockturnmc.spellapi.enums.TargetType;
  8. import de.slikey.effectlib.util.ParticleEffect;
  9. import org.bukkit.Bukkit;
  10. import org.bukkit.Color;
  11. import org.bukkit.Location;
  12. import org.bukkit.Sound;
  13.  
  14. /* Created by whiteNnerdy234 on 5/24/2015.
  15.  
  16.  
  17. */
  18. @Magic(type = SpellType.CHARM)
  19.  
  20. public class AcoriumDuo extends Spell {
  21.  
  22. public AcoriumDuo(SpellInfo info) {
  23. super(info);
  24. }
  25.  
  26.  
  27. @Override
  28. public void target() {
  29. info.setTargetType(TargetType.TARGETLESS);
  30. }
  31.  
  32. @Override
  33. public void cast() {
  34. info.setMaxTime(20 * 30);
  35. info.move(Color.YELLOW, ParticleEffect.REDSTONE, 3, 3, 1, null, -3);
  36. }
  37.  
  38. @Override
  39. public void effect() {
  40. Location location = info.getWhoCasted().getEyeLocation();
  41.  
  42. Bukkit.getWorld(location.getWorld().getName()).playSound(location, Sound.ENTITY_FIREWORK_TWINKLE, 5, 0);
  43.  
  44. }
  45.  
  46.  
  47. @Override
  48.  
  49. public void backfire() {
  50.  
  51. }
  52.  
  53. @Override
  54.  
  55. public void end() {
  56.  
  57. }
  58.  
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement