games647 / FastLogin

Checks if a minecraft player has a valid paid account. If so, they can skip offline authentication automatically. (premium auto login)
https://www.spigotmc.org/resources/fastlogin.14153
MIT License
500 stars 121 forks source link

Question #66

Closed shootcraft closed 8 years ago

shootcraft commented 8 years ago

Is it compulsory for me to setup fast login with bungee cord method if I am using bungee cord to connect my server or can I just setup fast login on my auth server only ?

games647 commented 8 years ago

That depends on your bungeecord setup. In general you should follow this guide: https://github.com/games647/FastLogin#bungeecordwaterfall-1

shootcraft commented 8 years ago

my fast login isn't working with my authme reloaded-5.2.snapshot plugin

games647 commented 8 years ago

Do you followed the setup?

shootcraft commented 8 years ago

So it is a must to follow the setup for bungee cord, I thought it can work without bungee cord setup method, Okay I will try :)

shootcraft commented 8 years ago

Now there is proxy-whitelist file in the FastLogin folder Put your stats id from the BungeeCord config into this file ----- I dont understand this step

games647 commented 8 years ago

In your config.yml of your bungeecord server, you see the stats-id like:

stats: efa7993d-d313-4991-b7a7-2cd8e80c82dd

This id should be inserted to the file. (Only the id not 'stats: '-part)

shootcraft commented 8 years ago

Thanks, should I install fast login on all my spigot server or auth and bungee server only ?

games647 commented 8 years ago

All servers

shootcraft commented 8 years ago

okay, the bungee cord id stat should be inserted on every server proxy-whitelist file or only auth server

games647 commented 8 years ago

on every one. Then the bukkit module can accept the force login command from the bungeecord server.

shootcraft commented 8 years ago

my fast login file does not generate on my other server might be because don t have auth plugin ?

games647 commented 8 years ago

No it might be because didn't enabled bungeecord support in the spigot.yml

shootcraft commented 8 years ago

i did

shootcraft commented 8 years ago

oh I forgot install protocollib

shootcraft commented 8 years ago

am I right ? , should i setup the configuration of fast login to be all the same

shootcraft commented 8 years ago

or I only setup the bungee cord ?

games647 commented 8 years ago

oh I forgot install protocollib

ProtocolLib isn't necessary on BungeeCord setup.

only setup the bungee cord ?

only bungeecord

shootcraft commented 8 years ago

But why fast login yaml didn't generate on my server ?

games647 commented 8 years ago

Because the config isn't needed there... (only on BungeeCord) The proxy-whitelist just have to be configured.

shootcraft commented 8 years ago

on every one. Then the bukkit module can accept the force login command from the bungeecord server.

should I install bungee cord id stats on every spigot fast login proxy-whitelist file but it didn't generate that file

games647 commented 8 years ago

https://github.com/games647/FastLogin/issues/66#issuecomment-243442595

shootcraft commented 8 years ago

driver: org.sqlite.JDBC how to change this to mariadb and what is mariadb

games647 commented 8 years ago

MariaDB is a fork of MySQL. IF you want to use the MariaDB driver, you have to have MariaDB installed too.

shootcraft commented 8 years ago

how to use mysql

shootcraft commented 8 years ago

Single file SQLite database

driver: MySQL

File location

database: '{pluginDir}/FastLogin.db' <--- what to write ?

games647 commented 8 years ago

BungeeCord only supports MySQL by default. So you need to change the settings to MySQL.

games647 commented 8 years ago

Now change host, port, database, username and password

driver: com.mysql.jdbc.Driver host: localhost port: 3306 database: fastlogin username: myUser password: myPassword

shootcraft commented 8 years ago

driver is ?

games647 commented 8 years ago

com.mysql.jdbc.Driver

shootcraft commented 8 years ago

Single file SQLite database

driver: MySQL

File location

database: '{pluginDir}/FastLogin.db'

--REMOVED by games647--

shootcraft commented 8 years ago

is what i Setup correct ?

shootcraft commented 8 years ago

is not working, I am using multicraft

games647 commented 8 years ago

is what i Setup correct ?

No you need to remove the SQLite part.

shootcraft commented 8 years ago

which one

games647 commented 8 years ago
#Single file SQLite database
driver: MySQL
#File location
database: '{pluginDir}/FastLogin.db'
shootcraft commented 8 years ago

Thanks for guiding me all the way however, fast login still not working but I am glad that I still have the chance to continue it tomorrow

games647 commented 8 years ago

I don't have access to your server, so you actually need data to check what's wrong. So you should check the startup log of the bungeecord server. I think you have invalid credentials.

games647 commented 8 years ago

Please use hastebin, pastebin or something similar.

shootcraft commented 8 years ago

okay

shootcraft commented 8 years ago

http://pastebin.com/QMgm4Mqc

games647 commented 8 years ago

The driver has not received any packets from the server

Check your connection settings. Either the host or the port is wrong or there is no running mySQL there.

shootcraft commented 8 years ago

do u have team viewer ?

shootcraft commented 8 years ago

I had no idea what going wrong

MySQL

driver: com.mysql.jdbc.Driver host: s5.minespan.com port: 26202 database: 15990 username: 15990 password: *****

shootcraft commented 8 years ago

should I config inside the database first ?

shootcraft commented 8 years ago

image

games647 commented 8 years ago

No only create the database if it doesn't exist. Everything else will be made automatically.

shootcraft commented 8 years ago

how can I setup fast login without bungee cord method such as run fast login only in auth server ?

games647 commented 8 years ago

Then install it on BungeeCord and the auth server, but make sure they join on that server first (if they are new players).

shootcraft commented 8 years ago

I dont want to install it on bungee cord cause mysql can't really connect, so is there any way only install on server ?

games647 commented 8 years ago

You could also add the SQLite driver to the BungeeCord server.

https://gist.github.com/games647/d2a57abf90f707c0bd1107e432c580f3

No there is absolutely no way. BungeeCord is responsible for managing the online-mode. That's why every backend server have to be in offline-mode.