diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/dev/CreateKitCommand.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/dev/CreateKitCommand.java index 2f0fc185..8008dc25 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/dev/CreateKitCommand.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/dev/CreateKitCommand.java @@ -19,6 +19,7 @@ package de.steamwar.bausystem.features.dev; +import de.steamwar.bausystem.BauSystem; import de.steamwar.command.SWCommand; import de.steamwar.linkage.Linked; import org.bukkit.configuration.file.YamlConfiguration; @@ -29,11 +30,10 @@ import java.io.IOException; @Linked public class CreateKitCommand extends SWCommand { + public CreateKitCommand() { super("createkit"); - if (System.getProperty("user.name").equals("minecraft")) { - unregister(); - } + if (!BauSystem.DEV_SERVER) unregister(); } @Register