Giter Site home page Giter Site logo

SkinsRestorer incompatibility about bungeeguard HOT 9 CLOSED

lucko avatar lucko commented on August 25, 2024
SkinsRestorer incompatibility

from bungeeguard.

Comments (9)

McLive avatar McLive commented on August 25, 2024 2

@MineCityZolii @CallMeGhosty Could you please try if the recent version fixes this issue? Thank you!

from bungeeguard.

el-zorab avatar el-zorab commented on August 25, 2024 1

Yes, it works! Thanks for the fast response. I think this issue can be closed now.
Thank you @lucko and @McLive!

from bungeeguard.

lucko avatar lucko commented on August 25, 2024 1

Thanks @McLive! :)

from bungeeguard.

lucko avatar lucko commented on August 25, 2024

I don't have much time to look into this at the moment. Would happily accept a PR fixing it.

from bungeeguard.

el-zorab avatar el-zorab commented on August 25, 2024

Hello, could you look now into the issue?

from bungeeguard.

lucko avatar lucko commented on August 25, 2024

I suspect the problematic code is here:
https://github.com/SkinsRestorer/SkinsRestorerX/blob/8b3efd5aaa9390ba1e55ca64a77c6d0e64c1168e/src/main/java/skinsrestorer/bungee/SkinApplier.java#L46-L68

Which conflicts with:
https://github.com/lucko/BungeeGuard/blob/master/bungeeguard-proxy/src/main/java/me/lucko/bungeeguard/proxy/SpoofedLoginResult.java

This is something the SkinsRestorer author would need to fix.

from bungeeguard.

lucko avatar lucko commented on August 25, 2024

@DoNotSpamPls would you be able to give some insight? :)

This code in particular doesn't seem very sane to me.

https://github.com/SkinsRestorer/SkinsRestorerX/blob/8b3efd5aaa9390ba1e55ca64a77c6d0e64c1168e/src/main/java/skinsrestorer/bungee/SkinApplier.java#L46-L68

Creating a totally new LoginResult seems redundant - could SkinsRestorer not just modify the properties inside of the existing object?

The manipulation of the Property arrays also seems odd - I can't really follow what that code is even meant to be doing?

from bungeeguard.

DoNotSpamPls avatar DoNotSpamPls commented on August 25, 2024

Hi @lucko, unfortunately I don't develop SkinsRestorer anymore, so I can't help much. However, I'm pinging @McLive here and in DMs, he may be able to assist you.

from bungeeguard.

McLive avatar McLive commented on August 25, 2024

@lucko Somehow I can't access the LoginResult provided by BungeeGuard...

            Property[] present = profile.getProperties();
            System.out.println("present props:");
            System.out.println(present.toString());
            for (Property prop : present) {
                System.out.println(prop.getName());
            }
            System.out.println(present[0]);

17:52:00 [INFORMATION] present props:
17:52:00 [INFORMATION] [Lnet.md_5.bungee.connection.LoginResult$Property;@654a3041
17:52:00 [SCHWERWIEGEND] java.lang.ArrayIndexOutOfBoundsException: 0
17:52:00 [SCHWERWIEGEND] at skinsrestorer.bungee.SkinApplier.applySkin(SkinApplier.java:64)
17:52:00 [SCHWERWIEGEND] at skinsrestorer.bungee.listeners.LoginListener$1.run(LoginListener.java:82)
17:52:00 [SCHWERWIEGEND] at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)
17:52:00 [SCHWERWIEGEND] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
17:52:00 [SCHWERWIEGEND] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
17:52:00 [SCHWERWIEGEND] at java.lang.Thread.run(Unknown Source)

Did I miss something?

from bungeeguard.

Related Issues (20)

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.