Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package future.blue.fun.tasks;
- import org.bukkit.Bukkit;
- import org.bukkit.entity.Player;
- import org.inventivetalent.glow.GlowAPI;
- import future.blue.fun.main;
- public class RainbowGlow {
- static main plugin;
- public static void rainbowGlow(Player playerName) {
- Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() {
- public void run() {
- GlowAPI.setGlowing(playerName, GlowAPI.Color.DARK_BLUE, playerName);
- GlowAPI.setGlowing(playerName, GlowAPI.Color.BLUE, playerName);
- GlowAPI.setGlowing(playerName, GlowAPI.Color.AQUA, playerName);
- GlowAPI.setGlowing(playerName, GlowAPI.Color.PURPLE, playerName);
- GlowAPI.setGlowing(playerName, GlowAPI.Color.DARK_PURPLE, playerName);
- GlowAPI.setGlowing(playerName, GlowAPI.Color.DARK_RED, playerName);
- GlowAPI.setGlowing(playerName, GlowAPI.Color.RED, playerName);
- GlowAPI.setGlowing(playerName, GlowAPI.Color.GOLD, playerName);
- GlowAPI.setGlowing(playerName, GlowAPI.Color.YELLOW, playerName);
- GlowAPI.setGlowing(playerName, GlowAPI.Color.GREEN, playerName);
- GlowAPI.setGlowing(playerName, GlowAPI.Color.DARK_GREEN, playerName);
- }
- }, 0, 10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment