AlwaysOnline 6.1.0

Updated to 1.13 Keep your server running while mojang is offline

  1. Dablakbandit
    Tested Minecraft Versions:
    • 1.13
    • 1.14
    Source Code:
    https://github.com/Dablakbandit/always-online
    Contributors:
    johnnywoof, coco5843
    Notice: The code has been updated to 1.13 by me but should support all other versions

    This plugin will NOT help you when you first install it when mojang servers are offline, it must be installed when they are online!

    Overview

    Hate mojang servers being offline? Same with me. So to resolve this issue, I have created AlwaysOnline. A plugin that keeps your spigot or bungeecord server online while mojang is offline.

    How it works

    The plugin is set to a repeating task with a configurable delay, to see if the session servers are offline. If they are, the plugin will go into mojang offline mode. When in this mode, the server will allow players to login if their ip matches from their last authenticated login. If they don't match, it denies them from logging in. The plugin will also deny new players from joining if the mojang authentication servers are down.

    Features
    • Stores last authenticated data in a FlatFile type database or MySQL
    • UUIDs will not be cracked, but instead premium. This means that player UUIDs will always be consistent.
    • Doesn't rely on any third party services
    • Compatible with most bungee, spigot, and bukkit plugins
    • Lightweight and efficient
    • No libraries required
    • Works with all Bungeecord versions
    • Works with spigot versions
    • It's free!
    Commands
    • /alwaysonline toggle - Manually toggle between mojang offline mode and back.
    • /alwaysonline enable - Makes the plugin check to see if the mojang servers are offline.
    • /alwaysonline disable - Makes the plugin stop checking to see if the mojang servers are offline.
    • /alwaysonline reload - Reloads the configuration file.
    Permission node for all of these commands is alwaysonline.usage

    Permissions

    alwaysonline.notify - Players with this permission node will be alerted when the mojang servers go online or offline.

    Configuration file
    Code (Text):
    #Welcome to the AlwaysOnline main configuration file!
    #The delay to wait between checking to see if mojang is online, in seconds.
    check-interval=60

    #Message for the MOTD to be when mojang servers are offline. Set to 'null' to disable.
    message-motd-offline=&eMojang servers are down,\n&ebut you can still connect!

    #The message to display when a user attempts to login while the mojang servers are offline, but their IP does not match.
    message-kick-ip=We can not let you join since you are not on the same computer you logged on before!

    #The message to display when a user is new and logs in while mojang servers are offline.
    message-kick-new=We can not let you join because the mojang servers are offline!

    #The message to display when a user attempts to login with an invalid minecraft username.
    message-kick-invalid=Invalid username. Hacking?

    #The message to display when mojang servers go offline. Set to null to disable.
    message-mojang-offline=&5[&2AlwaysOnline&5]&a Mojang servers are now offline!

    #The message to display when mojang servers go back online. Set to null to disable.
    message-mojang-online=&5[&2AlwaysOnline&5]&a Mojang servers are now online!

    #Below are three session server check methods which can be used to determine if mojang is online or not.
    #For example, if http-head-session-server is true AND mojang-server-status is also true, then the plugin will
    #only go into mojang offline mode if both services claim the session servers are offline.
    #Uses the status information located at https://sessionserver.mojang.com/
    http-head-session-server=true

    #Mojang server status uses https://help.mojang.com/
    mojang-server-status=false

    #Uses http://xpaw.ru/mcstatus/
    #Using xpaw is discouraged, due to it's lack of proper API support
    xpaw-status=false

    ##########################################
    #    Mysql Database Information
    #    Only edit if using mysql
    ##########################################
    use_mysql=false
    host=127.0.0.1
    port=3306
    database-name=minecraft
    database-username=root
    database-password=password

    #Please do not change this!
    config_version=5
    YT_PorkyCord, Diclo and TomCreeper like this.