Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class main extends JavaPlugin {
- public void onEnable() {
- registerCommands();
- registerEvents();
- //registerPerms();
- }
- Staff........
- public void rainbowGlow(Player playerName) {
- Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, 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