Skip to content

Commit 29f2280

Browse files
committed
Marked commandList functional interface param as nullable
1 parent 8ab3c8f commit 29f2280

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/me/kodysimpson/simpapi/command/CommandManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import org.bukkit.command.CommandMap;
44
import org.bukkit.plugin.java.JavaPlugin;
5+
import org.jetbrains.annotations.Nullable;
56

67
import java.lang.reflect.Constructor;
78
import java.lang.reflect.Field;
@@ -28,7 +29,7 @@ public class CommandManager {
2829
public static void createCoreCommand(JavaPlugin plugin, String commandName,
2930
String commandDescription,
3031
String commandUsage,
31-
CommandList commandList,
32+
@Nullable CommandList commandList,
3233
List<String> aliases,
3334
Class<? extends SubCommand>... subcommands) throws NoSuchFieldException, IllegalAccessException {
3435

@@ -63,7 +64,7 @@ public static void createCoreCommand(JavaPlugin plugin, String commandName,
6364
public static void createCoreCommand(JavaPlugin plugin, String commandName,
6465
String commandDescription,
6566
String commandUsage,
66-
CommandList commandList,
67+
@Nullable CommandList commandList,
6768
Class<? extends SubCommand>... subcommands) throws NoSuchFieldException, IllegalAccessException {
6869
createCoreCommand(plugin, commandName, commandDescription, commandUsage, commandList, Collections.singletonList(""), subcommands);
6970
}

0 commit comments

Comments
 (0)