22
33import org .bukkit .command .CommandMap ;
44import org .bukkit .plugin .java .JavaPlugin ;
5+ import org .jetbrains .annotations .Nullable ;
56
67import java .lang .reflect .Constructor ;
78import 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