WARNING: This plugin needs ProtocolLib to function, do not forget to install it first
This plugin will allow you to switch your server to maintenance mode so only people whitelisted in config will be able to join,
also it will change motd and pingmessage to indicate the users that server is at maintenance.
So it will look something like this.

Features:
- Changes pingmessage
- Changes motd
- Customiseable messages with color codes support
Commands
/mmode on - enable maintenance
/mmode off - disable maintenance
/mmode reload - reload config
Permission: mmode.admin
Permission to join while maintenance is active : mmode.join
Config
PingMessage: '&6Maintenance' #message near ping
MOTD: '{motd} &4At maintenance' #motd ({motd} will be automatically replaced by server motd)
KickMessage: 'Server is at maintenance. Please come back later.' #kick message
KickNonAllowedOnMModeEnable: true #kick non allowed on maintenance mode enable
Downloads:
Test version: download from jenkins
Source code: GitHub