I have a server on offline-mode is there a way to check if a player is authenticated or not with mojang servers? PLIIZZ I CAN PAYYYY
@AndreK, are you using BungeeCord? BungeeCord has built in player auth. Also, what is the point of running an offline server but checking if the user of authenticated?
To authenticate with mojang you need bungee in online mode if you are using bungee. If it's a stand alone server, the server needs to be in online mode.
If you're interested in a bunch of theoretical packet spoofing relating to faking player<->server handshakes and faking authentications, check out this link, it's quite interesting. https://bukkit.org/threads/checking-minecraft-net-authentication.27489/
I need to make a plugin like PremiumLock but before setting a player's onlinemode I have to check if hes authenticated so I'll set him the onlinemode, if he isn't premium he will login like a normal player. Hope you understand my bad english
The issue I'm having is how to figure out if the player is authenticated, as the hash used to verify authentication isn't sent on offline-mode severs.
You can't. At most you could mess with packets during login and only let the user authenticate based on ip address, but this is not something I recommend doing.