public boolean goTo ( int [ ] p ) throws CommandExecutionException { if ( p == null ) throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_PARAMETERS ) ; if ( p . length != 2 ) throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_PARAMETERS ) ; JSONArray payload = new JSONArray ( ) ; payload . put ( p [ 0 ] ) ; payload . put ( p [ 1 ] ) ; return sendOk ( "app_goto_target" , payload ) ; }
Go to the specified position on the map .