FlexibleLogin [v0.17] for Sponge 7+ - Auth plugin - 2FA

Do you have any errors, because it should already work for 7.1?

Error :
[Sponge]: The mod flexiblelogin was designed for spongeapi 6.1.0-SNAPSHOT but version 7.1.0-SNAPSHOT-6aa4e43 is in use. It may not work properly.

This is not an error. Itā€™s just a warning.

I could really use some help with this plugin.
Is there any way the plugin teleports the player to a specific location during the authentication time?

Take a look at the config.

I am quite new to thie plugin universe.
I Did look the config file inside configs directory, but couldnĀ“t understand if there is an option to to what I want.
Can you guide me?

Enable the teleport config and specify the world-name, x,y,z and then players temporarily be ported to this location.

Is this part of the config files?

Teleport the player to a safe location based on the last login coordinates

safeLocation=false

Database configuration

sqlConfiguration {
# Database name
database=flexiblelogin
# Password in order to login
password=""
# Path where the database is located. This can be a file path (h2/SQLite) or an IP/Domain (MySQL/MariaDB)
path="%DIR%"
# Port for example MySQL connections
port=3306
# SQL server type. You can choose between h2, SQLite and MySQL/MariaDB
type=H2
# Itā€™s strongly recommended to enable SSL and setup a SSL certificate if the MySQL/MariaDB server isnā€™t running on the same machine
useSSL=false
# Username to login the database system
username=""
}
teleportConfig {
coordX=0
coordY=0
coordZ=0
# Should the plugin use the default spawn from the world you specify below
defaultSpawn=false
enabled=false
# Spawn world or let it empty to use the default world specified in the server properties
worldName=""

Can you please tell me how to config this?

You write the configuration behind the =.
There are boolean values (true, false), numbers and text. {} describes a section or category.

I know that.
What I am asking is: What is the variables I need to set TRUE or FALSE to get the teleporting?
My world is called Amestris, i understant I need to fill

worldName=ā€œAmestrisā€

For the teleportation i need to fill the data below with the coordinates of the the safe location, right?

teleportConfig {
coordX=0
coordY=0
coordZ=0

But to ENABLE the teleporting, is there anywhere i need to set TRUE or FALSE? Or itĀ“s native of the plugin to teleport to a safe location?

You have to set enabled to true.

Can you PLEASE copy-paste the variable I need to set TRUE?

The section from the teleport config.

1 Like

So, for my purpose, to teleport the player to a safehouse (in 100, 111, 10) until he enterĀ“s his password, i need to set:

}
teleportConfig {
coordX=100
coordY=111
coordZ=10
# Should the plugin use the default spawn from the world you specify below
defaultSpawn=false
enabled=true
# Spawn world or let it empty to use the default world specified in the server properties
worldName=ā€œAmestrisā€

Is this right?
And after he inputs his password, he will be back to the coordinates he was when he logged out, correctly?

yes

yes, thatā€™s correct.

1 Like

Thank you very much for your help.

Hi game647 great plugin!
The bypass option seems to only be for roles that would never need a password (the bypass permission bypasses login, even when registering the password). Is there anyway to use this plugin to have an optional login/register other than setting up funky permission handling with roles?

Reasoning: Some people on a server I host want security on their account but most others do not and hate the idea of registering/logging in, but it seems like a nightmare to figure out how to split these guys into separate roles that easily have the option to switch between the roles to be able to require register/login or not.
Thanks.

You could assign the bypass permission by default and everyone one wants to enable it could get the negative permission. (no groups)

This plugin is great, but still there are some commands in AuthMeReloaded that arenā€™t in FlexibleLogin.

how to write json text in different colors ?
for example. &2Use &b/login &6[Password] &2to login.