Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChatColor.BLUE and ChatColor.RED seem swapped #23

Open
Towodile opened this issue Sep 12, 2024 · 7 comments
Open

ChatColor.BLUE and ChatColor.RED seem swapped #23

Towodile opened this issue Sep 12, 2024 · 7 comments
Labels
bug Something isn't working waiting for response A solution has been proposed, or a response from the issuer is needed

Comments

@Towodile
Copy link

Hi! I wanted to have my Snowball entity glow red, but when I tried using GlowingEntites.setGlowing(entity, player, color) with ChatColor.RED, it turned blue! The reverse happens when using ChatColor.BLUE: it creates a red glow. I tested it with ChatColor.DARK_BLUE and ChatColor.DARK_RED and the same thing applies! No clue if any other colors are affected, but I thought I'd let you know!

@SkytAsul
Copy link
Owner

Hi! Which version does this bug happen with?

@Towodile
Copy link
Author

Version 1.3.5

@SkytAsul
Copy link
Owner

Yeah but which MC version?

@Towodile
Copy link
Author

Oh sorry, version 1.21

@SkytAsul
Copy link
Owner

Can you try on a clean server without other plugins?

@SkytAsul
Copy link
Owner

SkytAsul commented Nov 2, 2024

Hey! Any news about this?

@SkytAsul SkytAsul added bug Something isn't working waiting for response A solution has been proposed, or a response from the issuer is needed labels Nov 2, 2024
@casperwtf
Copy link

Im having a similar issue where red seems to give red but so does green apparently?

        try {
            Boolean isRed = glowingPlayers.get(player.getUniqueId());
            if (isRed == null) {
                glowingPlayers.put(player.getUniqueId(), true);
                for (Player viewer : Bukkit.getOnlinePlayers()) {
                    plugin.getGlowingEntities().setGlowing(player, viewer, ChatColor.RED);
                }
            } else if (isRed) {
                for (Player viewer : Bukkit.getOnlinePlayers()) {
                    plugin.getGlowingEntities().setGlowing(player, viewer, ChatColor.GREEN);
                }
                glowingPlayers.put(player.getUniqueId(), false);
            } else {
                for (Player viewer : Bukkit.getOnlinePlayers()) {
                    plugin.getGlowingEntities().setGlowing(player, viewer, ChatColor.RED);
                }
                glowingPlayers.put(player.getUniqueId(), true);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }

I have this code running in a scheduler. I am running on 1.21.1 as-well. Running off api version 1.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for response A solution has been proposed, or a response from the issuer is needed
Projects
None yet
Development

No branches or pull requests

3 participants