Blue_future

Task Class

Aug 14th, 2016
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. package future.blue.fun.tasks;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.entity.Player;
  5. import org.inventivetalent.glow.GlowAPI;
  6.  
  7. import future.blue.fun.main;
  8.  
  9. public class RainbowGlow {
  10.  
  11. static main plugin;
  12.  
  13. public static void rainbowGlow(Player playerName) {
  14.  
  15. Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() {
  16.  
  17. public void run() {
  18. GlowAPI.setGlowing(playerName, GlowAPI.Color.DARK_BLUE, playerName);
  19. GlowAPI.setGlowing(playerName, GlowAPI.Color.BLUE, playerName);
  20. GlowAPI.setGlowing(playerName, GlowAPI.Color.AQUA, playerName);
  21. GlowAPI.setGlowing(playerName, GlowAPI.Color.PURPLE, playerName);
  22. GlowAPI.setGlowing(playerName, GlowAPI.Color.DARK_PURPLE, playerName);
  23. GlowAPI.setGlowing(playerName, GlowAPI.Color.DARK_RED, playerName);
  24. GlowAPI.setGlowing(playerName, GlowAPI.Color.RED, playerName);
  25. GlowAPI.setGlowing(playerName, GlowAPI.Color.GOLD, playerName);
  26. GlowAPI.setGlowing(playerName, GlowAPI.Color.YELLOW, playerName);
  27. GlowAPI.setGlowing(playerName, GlowAPI.Color.GREEN, playerName);
  28. GlowAPI.setGlowing(playerName, GlowAPI.Color.DARK_GREEN, playerName);
  29. }
  30.  
  31. }, 0, 10);
  32. }
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment