From 2dd8cf3f8bd19717d2288671d8f5655d06c2d615 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 2 Dec 2021 17:46:39 +0100 Subject: [PATCH] Fix check without rank Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/CheckCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/CheckCommand.java b/src/de/steamwar/bungeecore/commands/CheckCommand.java index 41ccc8d..6334971 100644 --- a/src/de/steamwar/bungeecore/commands/CheckCommand.java +++ b/src/de/steamwar/bungeecore/commands/CheckCommand.java @@ -49,7 +49,8 @@ public class CheckCommand extends BasicCommand { public static void setCheckQuestions(SchematicType checkType, Configuration config) { checkQuestions.put(checkType, config.getStringList("CheckQuestions")); - ranks.put(checkType, config.getStringList("Ranks")); + if(!config.getStringList("Ranks").isEmpty()) + ranks.put(checkType, config.getStringList("Ranks")); } public static boolean isChecking(ProxiedPlayer player){