Closed MarkL4YG closed 7 years ago
Are you certain you're Sponge version is API version 5 or 6? You can use the /sponge version
command to check.
Yes I am. This occurs on SpongeVanilla for MC1.10.2 (there's no API 7 for that MC version) and the stable-5 branch of Sponge.
Figured it out. LuckPerms includes a copy of the org.spongepowered.api.service.permission.SubjectReference
class in it's jar which tricks BungeeTabListPlus into thinking it's running on Sponge API 7. I'll probably have to find another way to detect the API version.
Yeah that sounds reasonable. I guess LuckyPerms had to ship the interface in order not to crash by CNF exceptions...
It's kinda unsatisfying that there seems to be no Sponge-supported way of getting the API version / build.
Well there probably is a way to get the version from SpongeAPI, I just prefer checking whether a class is present, because it's quite simple to do and more resilient in case they change the API or the versioning scheme or someone uses a fork or custom build. Checking the version number will work fine for too, so I should be able to do that.
If someone forks Sponge incompatible to BTLP it's really their responsibility ^^
The latest dev-build should fix your issue.
Thanks, I will test in a few hours.
Quick test shows: Yep - no exception this time. Rank and Balance available.
I'm going to call that fixed - Thanks š
Apparently the bridge uses the Sponge7 class to get the primary group of players although it's loaded on API 5 OR 6. (Hint:
SubjectReference
does not exist in 5 or 6. It'sSubject
there)