GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - metalshark/GlowAPI: This API allows you to change the glow-color of entities and players.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

152 Commits
152 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src/main
src/main
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
ISSUE_TEMPLATE.md
ISSUE_TEMPLATE.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 
renovate.json
renovate.json
 
 

Repository files navigation

GlowAPI

Build Status Latest release GitHub contributors License

This API allows you to change the glow-color of entities and players.

  • SpigotMC Page
  • Website
  • Donate

Depends on ProtocolLib.

Versions 1.4.11 and below depended on PacketListenerAPI instead.

API versions 1.4.11 and below are also compatible with APIManager.

Version 1.4.7 is intended for 1.13+ only. For older MC versions, please use 1.4.6.

Usage

import org.bukkit.Bukkit;
import org.bukkit.event.player.PlayerJoinEvent;
import org.inventivetalent.glow.GlowAPI;

public class PlayerJoinListener implements Listener {

    @EventHandler
    public void onPlayerJoin(final PlayerJoinEvent event) {

        //Delay the update by a few ticks until the player is actually on the server
        Bukkit.getScheduler().runTaskLater(this, () -> {

            //Set the event's player glowing in DARK_AQUA for all online players
            GlowAPI.setGlowing(event.getPlayer(), GlowAPI.Color.DARK_AQUA, Bukkit.getOnlinePlayers());
            
        }, 10);

    }

}
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.inventivetalent.glow.GlowAPI;

public class MyClass {

    public static void myMethod(Entity entity, Player player) {
        if (GlowAPI.isGlowing(entity, player)) {
            System.out.println("The entity is glowing for the player.");
        }
    }

}
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.inventivetalent.glow.GlowAPI;

public class MyClass {

    public static void myMethod(Collection<Entity> entities, Collection<Player> players) {
        CompleteableFuture<Void> future = GlowAPI.setGlowingAsync(entities, GlowAPI.Color.DARK_AQUA, players);

        // Do some other work while that executes in the background

        future.join(); //Wait for glowing to be set
    }

}

Maven

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>com.github.metalshark</groupId>
        <artifactId>GlowAPI</artifactId>
        <version>2.0.0</version>
    </dependency>
</dependencies>

About

This API allows you to change the glow-color of entities and players.

www.spigotmc.org/resources/api-glowapi.19422/

Resources

Readme
MIT license
Activity

Stars

7 stars

Watchers

0 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.