From 703639537dc4d1c1e95f2cbdb9352c7344555c5e Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Thu, 23 Apr 2026 11:59:28 +0200 Subject: [PATCH] Fix CreateKitCommand --- .../steamwar/bausystem/features/dev/CreateKitCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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