FastLogin
Checks if a Minecraft player has a paid account (premium). If so, they can skip offline authentication (auth plugins). So they don't need to enter passwords. This is also called auto login (auto-login).
###Features:
- Detect paid accounts from others
- Automatically login paid accounts (premium)
- Support various of auth plugins
- Cauldron support
- Forge/Sponge message support
- Premium UUID support
- Forwards Skins
- Detect user name changed and will update the existing database record
- BungeeCord support
- Auto register new premium players
- Plugin: ProtocolSupport is supported and can be used as an alternative to ProtocolLib
- No client modifications needed
- Good performance by using async non blocking operations
- Locale messages
- Import the database from similar plugins
- Free
- Open source
###Commands: * /premium [player] Label the invoker or the argument as paid account * /cracked [player] Label the invoker or the argument as cracked account * /importdb <autoIn/bpa/eldzi> <mysql/sqlite> [host:port] [database] [username] [password] - Imports the database from another plugin
###Permissions: * fastlogin.bukkit.command.premium * fastlogin.bukkit.command.cracked * fastlogin.command.premium.other * fastlogin.command.cracked.other * fastlogin.command.import
###Requirements:
- Plugin: ProtocolLib or ProtocolSupport
- Tested Bukkit/Spigot 1.9 (could also work with other versions)
- Java 7+
- Run Spigot and/or BungeeCord/Waterfall in offline mode (see server.properties or config.yml)
- An auth plugin. Supported plugins
####Bukkit/Spigot/PaperSpigot
- AuthMe (both 5.X and 3.X)
- xAuth
- LogIt
- AdvancedLogin (Paid)
- CrazyLogin
- LoginSecurity
- RoyalAuth
- UltraAuth
####BungeeCord/Waterfall
###Downloads
https://www.spigotmc.org/resources/fastlogin.14153/history
###How to install
####Bukkit/Spigot/PaperSpigot
- Download and install ProtocolLib
- Download and install FastLogin
- Set your server in offline mode by setting the value onlinemode in your server.properties to false
####BungeeCord/Waterfall
- Activate BungeeCord in the Spigot configuration
- Restart your server
- Now there is proxy-whitelist file in the FastLogin folder Put your stats id from the BungeeCord config into this file
- Activate ipForward in your BungeeCord config
- Download and Install FastLogin on BungeeCord AND Spigot
- Check your database settings in the config of FastLogin on BungeeCord
- Set your proxy (BungeeCord) in offline mode by setting the value onlinemode in your config.yml to false
- (BungeeCord doesn't support SQLite per default, so you should change the configuration to MySQL or MariaDB)
###FAQ
####Index
- How does Minecraft logins work?
- How does this plugin work?
- Why does the plugin require offline mode?
- Can cracked player join with premium usernames?
- Why do players have to invoke a command?
- What happens if a paid account joins with a used username?
- Does the plugin have BungeeCord support?
- Could premium players have a premium UUID and Skin?
- Is this plugin compatible with Cauldron?
####How does minecraft logins work? ######Online Mode
- Client -> Server: I want to login, here is my username
- Server -> Client: Okay. I'm in online mode so here is my public key for encryption and my serverid
- Client -> Mojang: I'm player "xyz". I want to join a server with that serverid
- Mojang -> Client: Session data checked. You can continue
- Client -> Server: I received a successful response from Mojang. Heres our shared secret key
- Server -> Mojang: Does the player "xyz" with this shared secret key has a valid account to join me?
- Mojang -> Server: Yes, the player has the following additionally properties (UUID, Skin)
- Client and Server: encrypt all following communication packet
- Server -> Client: Everything checked you can play now
######Offline Mode In offline mode step 2-7 is skipped. So a login request is directly followed by 8.
######More details http://wiki.vg/Protocol#Login
####How does this plugin work? By using ProtocolLib, this plugin works as a proxy between the client and server. This plugin will fake that the server runs in online mode. It does everything an online mode server would do. This will be for example, generating keys or checking for valid sessions. Because everything is the same compared to an offline mode login after an encrypted connection, we will intercept only login packets of premium players.
- Player is connecting to the server.
- Plugin checks if the username we received activated the fast login method (i.e. using command)
- Run a check if the username is currently used by a paid account. (We don't know yet if the client connecting is premium)
- Request an Mojang Session Server authentication
- On response check if all data is correct
- Encrypt the connection
- On success intercept all related login packets and fake a new login packet as a normal offline login
####Why does the plugin require offline mode?
- As you can see in the question "how does minecraft login works", offline mode is equivalent to online mode except of the encryption and session checks on login. So we can intercept and cancel the first packets for premium players and enable an encrypted connection. Then we send a new fake packet in order to pretend that this a new login request from a offline mode player. The server will handle the rest.
- Some plugins check if the server is in online mode. If so, they could process the real offline (cracked) accounts incorrectly. For example, a plugin tries to fetch the UUID from Mojang, but the name of the player is not associated to a paid account.
- Servers, who allow cracked players and just speed up logins for premium players, are already in offline mode.
####Can cracked player join with premium usernames? Yes, indeed. Therefore the command for toggling the fast login method exists.
####Why do players have to invoke a command?
- It's a secure way to make sure a person with a paid account cannot steal the account of a cracked player that has the same username. The player have to proof first that it's his own account.
- We only receive the username from the player on login. We could check if that username is associated to a paid account but if we request a online mode login from a cracked player (who uses a username from a paid account), the player will disconnect with the reason "bad login" or "Invalid session". There is no way to change that message on the server side (without client modifications), because it's a connection between the Client and the Sessionserver.
- If a premium player would skip registration too, a player of a cracked account could later still register the account and would claim and steal the account from the premium player. Because commands cannot be invoked unless the player has a account or is logged in, protects this method also premium players
###What happens if a paid account joins with a used username? The player on the server have to activate the feature of this plugin by command. If a person buys the username of his own account, it's still secured. A normal offline mode login makes sure he's the owner of the server account and Mojang account. Then the command can be executed. So someone different cannot steal the account of cracked player by buying the username.
####Does the plugin have BungeeCord support? Yes it has. See the how to install above.
####Could premium players have a premium UUID and Skin? Since 0.7 both features are implemented. You can check the config.yml in order to activate it.
####Is this plugin compatible with Cauldron? It's not tested yet, but all needed methods also exists in Cauldron so it could work together.
###Useful Links: