Comments (7)
There are also those 2 errors on Bungee's StartUp (Changes already done and re-applied on every startup?):
http://pastebin.com/4ciGVjhV
from fastlogin.
It seems that when BungeeCord is detected, the plugin doesn't even load the Database in the Bukkit side.
How can I send the request to the Bungee side of the Plugin, then?
from fastlogin.
And this function to get whether a player is Premium or not (Inside AsyncPlayerChatEvent):
plugin.getCore().getStorage().loadProfile(e.getPlayer().getName()).isPremium()
You don't get a NPE on loadProfile. getStorage() returns null if BungeeCord is enabled and this is intended for less configuration work and produce less stress on the MySQL database. So there is only one management component which takes care of it.
There are also those 2 errors on Bungee's StartUp (Changes already done and re-applied on every startup?):
http://pastebin.com/4ciGVjhV
You can ignore those errors. See the logging level. They are just used for debugging. Sadly there is no safe way to drop and create a new index without producing a new error.
How can I send the request to the Bungee side of the Plugin, then?
The plugin currently communicates over plugin-channels and it then sets a bukkit metadata field. You can make use of it. (although it's set before the proxy-key validation)
BTW: I'm thinking of removing proxy-key validation, because if FastLogin started up correctly in BungeeCord it will prevent fake messages from hackers.
from fastlogin.
Could you give me an example on how to request if someone is Premium to the BungeeSide and how to receive the answer?
from fastlogin.
Make an extra BungeeCord plugin and communicate over plugin-channels. Register the channel and define a custom protocol message. Something like
YourPlugin
IsPremium
Playername
read the message on the bungeecord side and then start a database query. You could also use the sessions, because the sessions in BungeeCord only expire on disconnect. After you got a result send the result back over the plugin-channel something like this:
YourPlugin
PremiumCheck
PlayerName
boolean
from fastlogin.
Ok, I think I got it.
from fastlogin.
I solved the problem by Listening for FastLogin "AUTO_LOGIN" plugin messages and adding those users to an ArrayList.
If the list contains the name, the player is Premium (as being Auto-Logged in), otherwise is Cracked. 😝
from fastlogin.
Related Issues (20)
- NoClassDefFoundError: PlayerInjectionHandler with ProtocolLib builds 721+ HOT 7
- Add support for 1.21 HOT 1
- Fast login Now working HOT 1
- Trying to set up the plugin and getting *Sending request...* HOT 5
- [1.21] If FastLogin is installed with Geyser, an error will be reported and FastLogin doesn't work HOT 3
- FastLogin make Server "Time Out" HOT 6
- Fast login and register not working HOT 6
- Case-senstive search of user profiles HOT 4
- "Server is not fully started yet. Please retry" on fully started server HOT 1
- NoSuchMethodError with Floodgate and ProtocolLib build 723 HOT 4
- Plugin does not function correctly at all using Velocity HOT 8
- autoLogin or autoRegister not working in Purpur 1.21 HOT 2
- Error authenticating tppzwn with minecraft.net io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure HOT 6
- Gayser-Standalone not allowing me to connect without a java account HOT 5
- Plugin is disabled HOT 2
- FastLogin: Automatic login not working with AuthMe integration HOT 1
- Error when play joins: [20:35:04] [Protocol Worker #1 - FastLogin - [recv: START[class=PacketLoginInStart, id=0], ENCRYPTION_BEGIN[class=PacketLoginInEncryptionBegin, id=1], send: ]/ERROR]: [FastLogin] Unhandled exception occurred in onAsyncPacket() for FastLogin HOT 3
- Advice:1.Add an option for premuim players not to change their offline UUID 2.Adding an option can disable the verification of offline players entering premuim player IDs HOT 2
- FastloginVelocity needs SNAP to run correctly HOT 1
- FastLogin isn't working with Authlib-Injector HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastlogin.