Sueta

BungeeLoginCore - New login system

1.2

Secure and very easy login system for your bungee server!

·Plugin

BungeeLoginCore
Very easy to set up and use, sha256 encryption, only 1 plugin!

Description
Created this plugin for myself, but will contribute to the community.
This plugin works like any other login plugin, with a few differences: you don't need this plugin in all servers, only in bungee plugins folder. Setup your login server correctly (for example make it very light 512MB ram server with a few plugins to deny any break and a small spawn with text to login or register) and this plugin will do the rest. It will check all players in the server, and if any is unlogged, it will teleport them back to login server and they will be forced to login.
It will check names (for example AsVaidas and ASVaidas), IP (for session and max ip register limit), can store data in yml and mysql.

Configuration

#Available types: mysql and yml
Data type: 'yml'

MySql:
    IP: '1'
    User: '2'
    Password: '3'
    Databaze: '4'
    Table: '5'
  
Login server: 'login'
Lobby server: 'lobby'
Max registrations on ip: 3

Messages:
#Available types: mysql and yml
Data type: 'yml'

MySql:
    IP: '1'
    User: '2'
    Password: '3'
    Databaze: '4'
    Table: '5'
   
Login server: 'login'
Lobby server: 'lobby'
Max registrations on ip: 3

Messages: 
    Information check: '&cInformation is being validated...'
    Password changed: '&aPasword was changed!'
    Change password error: '&cThere was an error while changing password'
    Password incorrect: '&cPassword is incorect!'
    Incorrect username: '&cUsername incorrect!\nCorrect: $nick'
    Already connected: '&cYou are already connected to the server'
    Login was successful: '&aYou have successfully loged in!'
    Passwords doesnt match: '&cPasswords doesn''t match!'
    Reached max registrations: '&cYou have reached max registrations on this IP!'
    Registration failed: '&cUser wasn''t registered... Maybe you have already registered?'
    Registration successful: '&aYou have been registered successfully!'
    Error on unregister: '&cError unregistering'
    Unregister: '&aSuccessfully unregistered!'
    No such user: '&cUser doesn''t exist'
    Accounts: '&aAccounts:'
    Cant run commands: '&cYou can''t run commands while not logged'
    Changepassword usage: '&c/changepassword <old password> <new password>'
    Login usage: '&c/login <password>'
    Register usage: '&c/register <password> <password>'
    Unregister usage: '&c/unregister <user>'
    Accounts usage: '&c/accounts <user|IP>'

How to use

  1. Upload this plugin to /bungee/plugins folder
  2. Start your bungee and stop it
  3. Configure the config
  4. Setup correctly login server
  5. Start the bungee

Commands

  • /login | /l - login to the server
  • /register | /reg - register to the server
  • /changepassword | /cp - change your password
  • /register {username} {password} (BungeeLoginCore.op) - register a new user
  • /changepassword {username} {password} (BungeeLoginCore.op) - change user password
  • /unregister (BungeeLoginCore.op) - unregister a player
  • /accounts (BungeeLoginCore.op) - check how many accounts an user has


It's a simple plugin and I don't think i'm going to support it a lot. Bug fixes and similar will be done, just updates could be very slow.

Similar projects

Plugin →