-
Notifications
You must be signed in to change notification settings - Fork 1
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
[FEATURE REQUEST] nlogin integration #2
Comments
Hello. I've looked into the linked website and it seems like this plugin could be used with an API (eighter BungeeCord plugin messaging, or direct Spigot library mapping). Theoretically, it could be possible, however, it's going to require quite a lot of resources to learn and properly test out, I'll have to contact a friend so we could test it out on a live server he owns, but first of all I'll have to contact the developers so I can fine tune exactly how this soft dependency is going to be implemented in my plugin (which conveniently enough may be at the Discord link as a starting point). I'll let you know with a further development of this. I've also received a similar feature request on Discord by another user, so I might end up looking into ways of implementing various APIs in my plugin. |
I checked the code here and came up with an idea that should be able to support nLogin without problems. I thought of using BetterWhitelist/src/main/java/me/polda18/betterwhitelist/commands/WhitelistCommand.java Lines 182 to 203 in bfc1ec6
And here it might be worth changing the AsyncPlayerPreLoginEvent event to PlayerLoginEvent, since the UUID will already be available through the BetterWhitelist/src/main/java/me/polda18/betterwhitelist/events/EventsListener.java Lines 32 to 41 in bfc1ec6
Those were my ideas, that was the most simplified way I thought of. |
I was using Not to mention that occasionally you could see a message that someone joined and immediately leaved, or depending on what plugins you used for authentication, only a leave message. With this simple fix, that issue no longer happens. |
I think you can fix this by using PlayerLoginEvent#disallow() instead of Player#kickPlayer(). I recommend you check if the event has already been canceled before blocking - with PlayerLoginEvent#getResult(), since, as you said, many other plugins can block login with PlayerLoginEvent. |
Okay, I'll experiment a little bit with this thing and see how it will work. Although, I'll still need to use an API with this thing in order to ensure that servers using custom auth systems can work properly with my plugin. |
You can see more details of the nLogin API here: JavaDocs: https://jd.nickuc.com/nlogin/ |
Is your feature request related to a problem? Please describe.
We have an authentication plugin in our server called nlogin (https://en.docs.nickuc.com/about) and it allows Premium Minecraft users to automatically login without typing in the password. They use a different UUID system in their configuration. However, after installing BetterWhitelist, it stopped letting premium Minecraft users to automatically login. Perhaps because BetterWhitelist uses offline UUID which nlogin does not use.
Describe the solution you'd like
Is it possible to make BetterWhitelist work perfectly with nlogin?
Describe alternatives you've considered
Additional context
Here's their discord server: https://discord.gg/JXzf9YrDJN
The text was updated successfully, but these errors were encountered: