LoginSecurity

LoginSecurity Icon

LoginSecurity

LoginSecurity

LoginSecurity is a lightweight password authorization plugin. You can optionally set a password each time you enter the server, adding a double layer of security to your account. The password is stored inside the configuration file, nobody else except the server owner can access or modify it.

How does it work?

Install the pluign to your /plugins/ directory, then start your server.
Type /register <password>, your account is now locked with a password.
For each time you login, make sure to use /login <password>.

Features

  • Register your account optional or required (change in config)
  • 5 useful commands to manage your password
  • Saving supported in SQLite and MySQL
  • Encryption available in: MD5, SHA, SHA-1, SHA-256, SHA-512 and PHPBB3
  • Custom encoder: UTF-8 and UTF-16
  • Customizeable login session
  • Customizeable login timeout
  • Custom min and max length for passwords
  • Messager API for client mods
  • User friendly experiance
  • Converter for xAuth (detects if xAuth is installed)
  • Easy to use
  • Blocks anything from happening before logged in (commands, movement ,etc.)
  • Supports blindness effect for login
  • Prevents being kicked by orther players loging in with your name

Session login allows the user to log in right after they logged out and not have to type in their password again. (1 minute time limit of being logged out, stores IP during that time to keep everything safe)

Commands

/lac - Admin command, rmpass and reload

/register <password> - Set your password

/rmpass - Removes your password

/login <password> - Login with your password

/changepass <old> <new> - change your password

/logout - Logout

Permissions

  • ls.admin - allows admin command

Video

This tutorial is outdated, alot of things have changed after v2.0
Orther tutorials: German (by MineCraftler4Live)

To do

  • MD5 support
  • Add an IP lock
  • Add a login session
  • Fix /changepass
  • Add a language.yml for language support
  • add login timeout
  • add ip checker
  • Suggestions?

Known Bugs

  • Players can mount/dismount and ride on vehicles while not logged in

Disclaimer

This plugin is connecting to mojang services to conver old data to new UUID data. It sends a request for every single player stored in your database, wich only hapends if you upgrade from 2.0.8 or lower to 2.0.9 or higher. This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:

  • A unique identifier
  • The server's version of Java
  • Whether the server is in offline or online mode
  • The plugin's version
  • The server's version
  • The OS version/name and architecture
  • The core count for the CPU
  • The number of players online
  • The Metrics version Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.

Donate

If you want to support me working on this project, please donate.
It helps me alot to keep my projects up.
Donate at the top right corner

LoginSecurity build server Hit couter

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of raton023 raton023 Jul 28, 2014 at 19:41 UTC - 0 likes

    @live4redline: Go

    you must not create tables by yourself just create the username and password and the database directory then run the server the plugin must create the tables on your mysql

    let me know if it works

  • Avatar of live4redline live4redline Jul 27, 2014 at 20:17 UTC - 0 likes

    I have the plugin running on each of my servers but wanted to put it on SQL. But when i do, it activates on startup, but once you i try to issue a /register or join the server i get SQL errors in console.

    Says "Failed to create User", "com.mysql.jdbc.exceptions/jdbc4.MySQLSyntaxErrorException: You have an eror in your SQL syntax... bla bla bla ....wcla at line 1."

    Any idea how to fix this? I have tried several things in the SQL setup and older versions of the plugin and many server restarts and re-installs. Can someone point me in the write direction?

  • Avatar of Maeso Maeso Jul 26, 2014 at 13:23 UTC - 0 likes

    This plugin protect force op?

    - invalid username using:

    /rmpass /lac

  • Avatar of tennya tennya Jul 23, 2014 at 15:05 UTC - 0 likes

    @lenis0012: Go

    [18:53:37] [Server thread/INFO]: [LoginSecurity] Enabling LoginSecurity v2.0.9 [18:53:37] [Server thread/INFO]: Username column was detected, conversion to UUID will begin in 10 seconds. [18:53:37] [Server thread/INFO]: This can not be reversed, stop the server NOW if you don't want this. [18:53:37] [Server thread/ERROR]: [LoginSecurity] Could not read from auth list! [18:53:37] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it [18:53:37] [Server thread/INFO]: Done (1,204s)! For help, type "help" or "?" [18:53:37] [Server thread/INFO]: Starting GS4 status listener [18:53:37] [Query Listener #1/INFO]: Query running on 127.0.0.1:25560 [18:53:47] [pool-3-thread-1/INFO]: Conversion to UUID has started, this may take some time [18:53:49] [pool-3-thread-1/INFO]: Loaded 100045 columns, starting to convert usernames to uuid [18:53:49] [pool-3-thread-1/INFO]: Offline-mode detected. uuids will be converted locally [18:53:49] [pool-3-thread-1/WARN]: Exception in thread "pool-3-thread-1" [18:53:49] [pool-3-thread-1/WARN]: org.apache.commons.lang.UnhandledException: Plugin LoginSecurity v2.0.9 generated an exception while executing task 2 at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at com.lenis0012.bukkit.ls.data.MySQL$1.run(MySQL.java:95) at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more on craftbukkit 1.7.9

    [18:37:26] [Server thread/INFO]: [LoginSecurity] Enabling LoginSecurity v2.0.10 [18:37:27] [Server thread/INFO]: Username column was detected, conversion to UUID will begin in 10 seconds. [18:37:27] [Server thread/INFO]: This can not be reversed, stop the server NOW if you don't want this. [18:37:27] [Server thread/ERROR]: [LoginSecurity] Could not read from auth list! [18:37:27] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it [18:37:27] [Server thread/INFO]: Done (2,263s)! For help, type "help" or "?" [18:37:27] [Server thread/INFO]: Starting GS4 status listener [18:37:27] [Query Listener #1/INFO]: Query running on 127.0.0.1:25560 [18:37:37] [Craft Scheduler Thread - 0/INFO]: Conversion to UUID has started, this may take some time [18:37:38] [Craft Scheduler Thread - 0/INFO]: Loaded 100026 columns, starting to convert usernames to uuid [18:37:38] [Craft Scheduler Thread - 0/INFO]: Offline-mode detected. uuids will be converted locally [18:37:39] [Craft Scheduler Thread - 0/WARN]: Exception in thread "Craft Scheduler Thread - 0" [18:37:39] [Craft Scheduler Thread - 0/WARN]: org.apache.commons.lang.UnhandledException: Plugin LoginSecurity v2.0.10 generated an exception while executing task 2 at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at com.lenis0012.bukkit.ls.data.MySQL$1.run(MySQL.java:95) at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71) at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more

    on last spigot

    please help

  • Avatar of unixfox unixfox Jul 23, 2014 at 10:48 UTC - 0 likes

    I have translated your plugin in French : http://smarturl.it/loginsecurityfr !

  • Avatar of raton023 raton023 Jul 22, 2014 at 00:01 UTC - 0 likes

    @EddieFriday: Go i got the same problem and fix it remove the plugin v 2 0 9 and put the v 2 0 8 and dont create any table on the sql just create the user pass and database the plugin must create the tables ... put the sql inf in config file and start bukkit 1.7.9 it will conect and create all the tables username pass ... the restart bukkit and it will work @EddieFriday: Go

  • Avatar of raton023 raton023 Jul 21, 2014 at 23:37 UTC - 0 likes

    @live4redline: Go

    in mi conf works try to test it without other plugins just this plugin and bukkit and see if that happens try other versions of bukkit just to see whatstheproblem

  • Avatar of raton023 raton023 Jul 21, 2014 at 23:32 UTC - 0 likes

    why the encription sha1 is not encriptin as sha1 it set another code on the sql database i cant access that password from another client like a web forum i put on my php forum this code

    $sql = "SELECT username FROM users WHERE username = '" . mysql_real_escape_string($_POST['username']) . "' AND password = '" . sha1($_POST['password']) . "'"; and dosent work i think is becouse the encription is not only sha1 cause when i sha1 my password it gives me another code and not the one stores on sql database it works with the username but not the password

    Last edited Jul 21, 2014 by raton023
  • Avatar of live4redline live4redline Jul 21, 2014 at 05:23 UTC - 0 likes

    Love the plugin, installed it on our server cloud.

    The "Session login" doesn't seem to be working though. Moving from one server to another or leaving and logging back in always asks for a login even if its in the 60 seconds or the 600 seconds I set it too. Any ideas...?

  • Avatar of rangewonk rangewonk Jul 14, 2014 at 14:07 UTC - 0 likes

    Could you please make customization messages. For example when it says Invalid password Make it so we can change it to what we want such as 'Invalid password, if you forgot your password please contact us here : site'

    Thanks!

    http://i60.tinypic.com/etfsea.jpg

Facts

Date created
Jul 07, 2012
Category
Last update
May 02, 2014
Development stage
Release
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
LoginSecurity
Downloads
185,132
Recent files

Authors