From 376da2028b245a6c04f08e0aede2631efa166c76 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Wed, 30 Jul 2025 13:36:24 +0200 Subject: [PATCH] Fix ColorCommand --- .../de/steamwar/bausystem/features/region/ColorCommand.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/region/ColorCommand.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/region/ColorCommand.java index 7c60aef2..545219a2 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/region/ColorCommand.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/region/ColorCommand.java @@ -34,8 +34,6 @@ import de.steamwar.linkage.Linked; import de.steamwar.linkage.LinkedInstance; import org.bukkit.entity.Player; -import java.io.IOException; - @Linked public class ColorCommand extends SWCommand { @@ -47,7 +45,7 @@ public class ColorCommand extends SWCommand { } @Register(description = "REGION_COLOR_HELP_COLOR") - public void genericColor(Player p, ColorMode color) { + public void genericColor(@Validator Player p, ColorMode color) { genericColorSet(p, color, ColorizationType.LOCAL); } @@ -78,7 +76,7 @@ public class ColorCommand extends SWCommand { } @Register - public void genericColorSet(Player p, ColorizationType colorizationType, ColorMode color) { + public void genericColorSet(@Validator Player p, ColorizationType colorizationType, ColorMode color) { genericColorSet(p, color, colorizationType); }