:: CommandMySQL :: 1.0

Command run with MySQL

  1. 09andriy12
    Tested Minecraft Versions:
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    • 1.17
    Source Code:
    https://github.com/raryk/CommandMySQL
    CommandMySQL is a plugin for sending console commands from MySQL database!

    - You can specify multiple servers, as well as BungeeCord, where there is no RCON server.
    - Also you can add command execution when the player is on the server or logged in.



    Example MySQL:
    Code (Text):
    INSERT INTO `run_commands` (`command_id`, `command_status`, `command_server`, `command_player`, `command_command`) VALUES (NULL, '1', 'global', NULL, 'say hi!');

    Example MySQL with player:
    Code (Text):
    INSERT INTO `run_commands` (`command_id`, `command_status`, `command_server`, `command_player`, `command_command`) VALUES (NULL, '1', 'global', 'player', 'msg Hello player!');


    - command_id: AUTO_INCREMENT MySQL
    - command_status: 1 - enable run command, 0 - disable
    - command_server: server name execute command
    - command_player: player nickname execute command on logged server
    - command_command: the command that runs on the server



    Config file:
    Code (YAML):
    server: "global"

    storage_mysql
    :
      hostname
    : "hostname"
      username
    : "username"
      password
    : "password"
      database
    : "database"
      port
    : "3306"

      table_commands
    : "run_commands"
      column_commands
    :
        id
    : "command_id"
        status
    : "command_status"
        server
    : "command_server"
        player
    : "command_player"
        command
    : "command_command"


    Preview video:
    extremall likes this.