Added ability to read from a server's properties file, and added server port numbers to the index display

This commit is contained in:
2022-10-14 10:59:28 -04:00
parent 5c35389ae3
commit 2297768b57
3 changed files with 39 additions and 0 deletions

View File

@ -22,6 +22,7 @@
<tr>
<th>Server name</th>
<th>Minecraft version</th>
<th>Port</th>
<th>State</th>
<th>Actions</th>
</tr>
@ -31,6 +32,7 @@
<tr class="serverItem" data-server-name="{{ m.getName() }}">
<td class="serverName">{{ m.getName() }}</td>
<td class="serverVersion">{{ m.getVersion() }}</td>
<td class="serverPort">{{ m.getProperty('server-port') }}</td>
<td class="serverState">{{ m.getState() ? 'Running' : 'Stopped' }}</td>
<td>
<a href="/server/{{ m.getName() }}/start"><i class="fa-solid fa-play"></i></a>