Solved Helpp with checking Mojang connection (Pay4this)

Discussion in 'BungeeCord Plugin Development' started by AndreK, May 1, 2017.

  1. 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
     
  2. @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?
     
    • Friendly Friendly x 1
  3. Gaxan

    Supporter

    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.
     
    • Like Like x 1
    • Useful Useful x 1
  4. 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
     
  5. 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.
     
  6. 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.