HomeJavaModsAlwaysOnline
AlwaysOnline
Notice: 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
Commands
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
 
Known Incompatibilities
Plugins listed below are currently known to be incompatible with AlwaysOnline with the latest version.

Source code is available on the github.

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

AlwaysOnline is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9. Downloaded 739,264 times (via Spigot). Download it and open it directly in the game.

Explore more