Source

ec2control / sample_templates / minecraft.mako


<%def name="subject()">
    % if status == 'started':
        % if instance.status == 'running':
            ${instance.descriptive_name} is online!  ${instance.ip_address}:${instance.config['minecraft_port']}
        % else:
            ${instance.descriptive_name} failed to start!
        % endif
    % elif status == 'command_error':
        ${exception}
    % elif status == 'error':
        An error occurred.
    % endif
</%def>

<%def name="body()">
% if status == 'started':
    % if instance.status == 'running':
Your presence is welcome at ${instance.descriptive_name}!  ${instance.ip_address}:${instance.config['minecraft_port']}
    % else:
${instance.descriptive_name} wasn't able to start !   Status is ${instance.status}
    % endif
% elif status == 'command_error':
Sorry, I wasn't able to understand your command.

${exception}
% elif status == 'error':
    % if instance:
${instance.descriptive_name} had a problem.
    % else:
An unknown error occurred.
    % endif

${exception}
% endif
</%def>

Greetings Citizen -

${body()}

Regards, 

The Management