Fixed a bug in the SetupRoute.java
This commit is contained in:
parent
a5f8b72c9b
commit
6a65daa579
@ -31,6 +31,11 @@ public class SetupRoute extends DefaultHandler {
|
||||
if (!isIntegerInBody(request, response, "memory")) return;
|
||||
if (!isBooleanInBody(request, response, "autoStart")) return;
|
||||
|
||||
if (!versionManager.getInstallers().containsKey(getStringFromBody(request, "type"))) {
|
||||
response.code(404).message("The server software could not be found");
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
String uuid = UUID.randomUUID().toString().split("-")[0];
|
||||
MCDashWrapper.getDataSource("servers/" + uuid).mkdirs();
|
||||
|
Reference in New Issue
Block a user