From 137ef647fb84f86096ad1ab8f9463ec1e5a54878 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 23 Jul 2023 17:47:33 +0200 Subject: [PATCH] Fix buildercloud create Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/BuilderCloudCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/BuilderCloudCommand.java b/src/de/steamwar/bungeecore/commands/BuilderCloudCommand.java index 640ea7a..f1eb7c0 100644 --- a/src/de/steamwar/bungeecore/commands/BuilderCloudCommand.java +++ b/src/de/steamwar/bungeecore/commands/BuilderCloudCommand.java @@ -18,7 +18,7 @@ public class BuilderCloudCommand extends SWCommand { private final Map versionMap = new HashMap<>(); public BuilderCloudCommand() { - super("buildercloud", "bungeecore.server.team"); + super("buildercloud", "bungeecore.server.team", "builder"); versionMap.put("15", ServerStarter.Version.SPIGOT_15); versionMap.put("1.15", ServerStarter.Version.SPIGOT_15); @@ -30,6 +30,7 @@ public class BuilderCloudCommand extends SWCommand { @Register(value = "create", description = "BUILDERCLOUD_CREATE_USAGE") public void create(ProxiedPlayer player, @ErrorMessage("BUILDERCLOUD_VERSION") ServerStarter.Version version, @Mapper("map") String map, @OptionalValue("") @Mapper("generator") @AllowNull File generator) { + mapFile(version, map).mkdir(); new ServerStarter().builder(version, map, generator).send(player).start(); }