@@ -432,7 +432,7 @@ private static boolean supportsCompletion(Method method) {
432432 * @param methodArgs method arguments
433433 * @throws CommandException thrown when the command throws an error
434434 */
435- public void execute (String cmd , String [] args , T player , Object ... methodArgs ) throws CommandException {
435+ protected void execute (String cmd , String [] args , T player , Object ... methodArgs ) throws CommandException {
436436 executeMethod (false , cmd , args , player , methodArgs );
437437 }
438438
@@ -450,7 +450,7 @@ public void execute(String cmd, String[] args, T player, Object... methodArgs) t
450450 }
451451 }
452452
453- private List <String > executeMethod (boolean completing , String cmd , String [] args , T player , Object ... methodArgs ) throws CommandException {
453+ protected List <String > executeMethod (boolean completing , String cmd , String [] args , T player , Object ... methodArgs ) throws CommandException {
454454 String [] newArgs = new String [args .length + 1 ];
455455 System .arraycopy (args , 0 , newArgs , 1 , args .length );
456456 newArgs [0 ] = cmd ;
@@ -476,7 +476,7 @@ private List<String> executeMethod(boolean completing, String cmd, String[] args
476476 * @throws CommandException thrown on a command error
477477 */
478478
479- private List <String > executeMethod (Method parent , boolean completing , String [] args , T player , Object [] methodArgs , int level ) throws CommandException {
479+ protected List <String > executeMethod (Method parent , boolean completing , String [] args , T player , Object [] methodArgs , int level ) throws CommandException {
480480 final String cmdName = args [level ];
481481 final String cmdNameLower = cmdName .toLowerCase ();
482482 final int argsCount = args .length - 1 - level ;
0 commit comments