From 740b11b434806547cf9f11be0570520076b50b21 Mon Sep 17 00:00:00 2001 From: games647 Date: Wed, 20 Apr 2016 18:59:55 +0200 Subject: [PATCH] Fix disconnect reason documentation when cracked users joins (Fixes #9) This message changed a couple of versions ago --- README.md | 5 +++-- bukkit/src/main/resources/config.yml | 16 ++++++++++++++-- pom.xml | 16 ++++++++++++++++ universal/pom.xml | 1 + 4 files changed, 34 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6bc62a80..002edfd0 100644 --- a/README.md +++ b/README.md @@ -123,8 +123,9 @@ Yes, indeed. Therefore the command for toggling the fast login method exists. of a cracked player that has the same username. The player have to proof first that it's his own account. 2. 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. 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. +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. 3. 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 diff --git a/bukkit/src/main/resources/config.yml b/bukkit/src/main/resources/config.yml index ec8c98be..ec738b5c 100644 --- a/bukkit/src/main/resources/config.yml +++ b/bukkit/src/main/resources/config.yml @@ -16,7 +16,7 @@ # # Furthermore the premium player check have to be made based on the player name # This means if a cracked player connects to the server and we request a paid account login from this player -# the player just disconnect and sees the message: 'bad login' +# the player just disconnect and sees the message: 'bad login' or 'invalid session' # There is no way to change this message # For more information: https://github.com/games647/FastLogin#why-do-players-have-to-invoke-a-command autoRegister: false @@ -49,4 +49,16 @@ premiumUuid: false # This means this plugin doesn't need to create a new connection to the Mojang servers, because # the skin data is included in the Auth-Verification-Response sent by Mojang. If you want to use for other # players like cracked player, you have to use other plugins. -forwardSkin: true \ No newline at end of file +forwardSkin: true + +# Database configuration +# Recommened is the use of MariaDB (a better version of MySQL) +driver: mysql +host: localhost +port: 3306 +database: FastLogin +username: myUser +password: myPassword +# If you use an existing database which will be used by other programs too +# you define here a prefix, to prevent conflicts. +tablePrefix: '' diff --git a/pom.xml b/pom.xml index 84e4b279..d3a65fd9 100644 --- a/pom.xml +++ b/pom.xml @@ -83,4 +83,20 @@ + + + + + com.zaxxer + HikariCP + 2.4.5 + + + + + org.slf4j + slf4j-jdk14 + 1.7.20 + + diff --git a/universal/pom.xml b/universal/pom.xml index 39bc1dd5..5c89c490 100644 --- a/universal/pom.xml +++ b/universal/pom.xml @@ -29,6 +29,7 @@ ${project.groupId}:* + com.zaxxer:HikariCP