. */ namespace GameQ\Protocols; /** * Minecraft Protocol Class * * Thanks to https://github.com/xPaw/PHP-Minecraft-Query for helping me realize this is * Gamespy 3 Protocol. Make sure you enable the items below for it to work. * * Information from original author: * Instructions * * Before using this class, you need to make sure that your server is running GS4 status listener. * * Look for those settings in server.properties: * * enable-query=true * query.port=25565 * * @package GameQ\Protocols * * @author Austin Bischoff */ class Minecraft extends Gamespy3 { /** * String name of this protocol class * * @type string */ protected $name = 'minecraft'; /** * Longer string name of this protocol class * * @type string */ protected $name_long = "Minecraft"; /** * The client join link * * @type string */ protected $join_link = "minecraft://%s:%d/"; /** * Normalize settings for this protocol * * @type array */ protected $normalize = [ // General 'general' => [ // target => source 'dedicated' => 'dedicated', 'gametype' => 'game_id', 'hostname' => 'hostname', 'mapname' => 'map', 'maxplayers' => 'maxplayers', 'numplayers' => 'numplayers', 'password' => 'password', ], // Individual 'player' => [ 'name' => 'player', ], ]; }