Giter Site home page Giter Site logo

metalshark / glowapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from inventivetalentdev/glowapi

7.0 7.0 4.0 207 KB

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

Home Page: https://www.spigotmc.org/resources/api-glowapi.19422/

License: MIT License

Java 100.00%

glowapi's People

Contributors

inventivetalentdev avatar metalshark avatar renovate-bot avatar sydmontague avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

glowapi's Issues

Player kicked, null pointer

What steps will reproduce the problem?

https://media.giphy.com/media/j6AVCfAzs4E4JpP583/giphy.gif

This is happening only with spamming

What were you expecting to happen? What happened instead?

Sometimes the color is white, while it supposed to be colored.

What version of the plugin are you using?

latest v2

What Spigot version are you using?

tested with spigot and paper latest

What plugins are you using? Type /plugins

only protocollib and my plugin

Do you have an error log?

With paper spigot I can get an error not with spigot:
https://hastebin.com/ejitozivip.md

Did your client crash? Upload errors in .minecraft/logs/latest.log as well

My client is kicked

Additional information?

I tried multiple code from the api, async, not async, entity list ect... same error
I have tested with the official glowapi version and everything is fine :)

My code with the official glowapi is (almost the same I used for your plugin):

`

List<Entity> entities = new ArrayList<>();
private ChatColor color;
@Override
public void description() {
    super.description();
    Item3D i = getLastSelected();
    this.color = ChatColor.valueOf(ChatColor.stripColor(i.getDisplayName().getTitle().toUpperCase()));

    List<Projector> list = nightClub.getProjectors(color);
    list.forEach(pr -> entities.add(pr.getProjector().getBukkitEntity()));
    GlowAPI.setGlowing(entities,GlowAPI.Color.valueOf(color.name()), player);

}

@Override
public void undescription() {
    super.undescription();
    if(color != null)
        entities.forEach(e -> {
            GlowAPI.setGlowing(e,false,player);
        });

    entities.clear();
    color = null;
}

@Override
public void closeGui() {
    super.closeGui();
    if(color != null)
        entities.forEach(e -> {
            GlowAPI.setGlowing(e,false,player);
        });
    entities.clear();
    color = null;

}`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.