MySQLChecker 1.1

Simple plugin that shuts down the server if it is unable to connect to MySQL Server

  1. Vik1395
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    This plugin is mainly for servers that largely depend on MySQL, like servers that use LogBlock or xAuth. It basically checks for a connection to a MySQL database every user specified interval. If it doesn't connect, it sends an error message on the console. After user given attempts to try connecting to the database, it shuts the server down. A connections.log file located in the plugin's data folder will save the time at which the last successful connection was made to the database before failure, and the time the server was shutdown.

    Please report any issues with this plugin HERE

    If you like my work, please consider donating, I would greatly appreciate it. [​IMG]

    Permissions
    mysqlchecker.notify - Notifies players with this permission about a connection failure.

    Config.yml
    Code (Text):
    # Please enter the Host of your MySQL Database here.
    Host: 127.0.0.1

    # Please enter the port where your MySQL is hosted.
    Port: '3306'

    # The Username which should be used to auth against the Database
    Username: root

    # The Password which should be used to auth against the Database
    Password: ''

    # The name of the database where BungeeAuth's Tables shall be created.
    Database: Bungee

    # Interval is the time in minutes before the plugin checks for a connection to the SQL Database again.
    Interval: 5

    # Number of attempts before the server is shut down.
    Max Attempts: 3
    Connection.log
    a sample connection.log file will look like this:
    Code (Text):
    Last successful connection: Tue 2014.10.14 at 10:47:53 PM EDT

    Server Shutdown: Tue 2014.10.14 at 10:50:54 PM EDT

    [​IMG]

    This plugin is licensed under CC Attribution-NonCommercial-ShareAlike 4.0 International. In very basic terms, Do whatever you want with the code of this plugin, as long as you give credits to the author and/or the plugin itself.

    Please leave a comment or rate the plugin, and tell me what you think of it. I would really appreciate it.

Recent Updates

  1. Logging
  2. Feature addition

Recent Reviews

  1. ToPoEdiTs
    ToPoEdiTs
    4/5,
    Version: 1.1
    Good Plugin!
    Nice Job!
  2. jeff142
    jeff142
    5/5,
    Version: 1.0
    :D works just like i asked