소스 검색

fix annotation

nossr50 1 년 전
부모
커밋
0650731723
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/main/java/com/gmail/nossr50/config/CommandOnLevelUpConfig.java

+ 2 - 1
src/main/java/com/gmail/nossr50/config/CommandOnLevelUpConfig.java

@@ -66,7 +66,7 @@ public class CommandOnLevelUpConfig extends BukkitConfig {
         }
     }
 
-    private @NotNull SkillLevelUpCommand buildSkillLevelUpCommand(final ConfigurationSection commandSection) {
+    private @Nullable SkillLevelUpCommand buildSkillLevelUpCommand(final ConfigurationSection commandSection) {
         SkillLevelUpCommandBuilder builder = new SkillLevelUpCommandBuilder();
         // check if command is enabled
         if (!commandSection.getBoolean(ENABLED, true)) {
@@ -171,6 +171,7 @@ public class CommandOnLevelUpConfig extends BukkitConfig {
                     + commandSection.getName());
             return null;
         }
+
         builder.withLevels(levels);
 
         // commands