Blue_future

Main Class

Aug 14th, 2016
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. public class main extends JavaPlugin {
  2. public void onEnable() {
  3.  
  4.  
  5. registerCommands();
  6. registerEvents();
  7. //registerPerms();
  8. }
  9.  
  10. Staff........
  11.  
  12.  
  13. public void rainbowGlow(Player playerName) {
  14.  
  15. Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, 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. }
Advertisement
Add Comment
Please, Sign In to add comment