<game_config>
  <game_key>minecraft_linux64</game_key>
  <gameq_query_name>minecraft</gameq_query_name>
  <installer>steamcmd</installer>
  <game_name>Minecraft</game_name>
  <server_exec_name>start_minecraft.sh</server_exec_name>
  <query_port type="add">0</query_port>
 <cli_template>-Xms512M -Xms%PLAYERS%00M -jar server.jar nogui </cli_template>
  <cli_params>
   <cli_param id='PLAYERS' cli_string=''/>
  </cli_params>

  <reserve_ports>
  <port type="add" id="RCONPORT">1</port>
  </reserve_ports>

  <console_log>logs/latest.log</console_log>
  <max_user_amount>250</max_user_amount>
  <mods>
    <mod key="default">
      <name>none</name>
      <installer_name></installer_name>
      <installer_login></installer_login>
    </mod>
  </mods>

  <replace_texts>
    <text key="ip">
      <default>server-ip=.*</default>
      <var>server-ip=</var>
      <filepath>server.properties</filepath>
    </text>
    <text key="port">
      <default>server-port=.*</default>
      <var>server-port=</var>
      <filepath>server.properties</filepath>
    </text>
    <text key="true">
      <default>enable-query=.*</default>
      <var>enable-query=true</var>
      <filepath>server.properties</filepath>
    </text>
    <text key="query_port">
      <default>query.port=.*</default>
      <var>query.port=</var>
      <filepath>server.properties</filepath>
    </text>
 <text key="rcon_port">
      <default>rcon.port=.*</default>
      <var>rcon.port= "%RCONPORT%"</var>
      <filepath>server.properties</filepath>
    </text>
    <text key="max_players">
      <default>max-players=.*</default>
      <var>max-players=</var>
      <filepath>server.properties</filepath>
    </text>
    <text key="control_password">
      <default>rcon.password=.*</default>
      <var>rcon.password=</var>
      <filepath>server.properties</filepath>
    </text>
    <text key="home_name">
      <default>motd=.*</default>
      <var>motd=</var>
      <filepath>server.properties</filepath>
    </text>
  </replace_texts>
  <server_params>
  </server_params>
  <custom_fields>
    <field key="EULA" type="select">
      <option value="false">False</option>
      <option value="true">True</option>
      <default>eula=.*</default>
      <default_value>true</default_value>
      <var>eula=</var>
      <filepath>eula.txt</filepath>
      <desc>Agreeing to the Minecraft End User License Agreement (EULA). Can be viewed &lt;a href=https://account.mojang.com/documents/minecraft_eula target=_blank&gt;here&lt;/a&gt;.</desc>
    </field>
    <field key="RCON Enabled" type="select">
      <option value="true">Yes</option>
      <option value="false">No</option>
      <default>enable-rcon=.*</default>
      <default_value>true</default_value>
      <var>enable-rcon=</var>
      <filepath>server.properties</filepath>
      <desc>Enables remote access to the server console.</desc>
    </field>
  </custom_fields>

<post_install>
wget https://piston-data.mojang.com/v1/objects/84194a2f286ef7c14ed7ce0090dba59902951553/server.jar
chmod +x server.jar
echo &apos;#!/bin/bash
java $@&apos; &gt; start_minecraft.sh
chmod +x start_minecraft.sh
</post_install>

<configuration_files>
 <file description="Server settings">server.properties</file>
 <file description="Add usernames of ADMINS">ops.txt</file>
</configuration_files>
</game_config>
