-
When using any type of Command manager does my IDE complain with "cannot infer argument" within the diamond section ( This is the code I use: private void setupCommandFramework(){
// I don't use a special command sender so I provide CommandSender and Function.identity()
PaperCommandManager<CommandSender> manager = new PaperCommandManager<>(
this,
AsynchronousCommandExecutionCoordinator.newBuilder().build(),
Function.identity(),
Function.identity()
);
} The error appears at the |
Beta Was this translation helpful? Give feedback.
Answered by
jpenilla
Mar 8, 2021
Replies: 1 comment
-
Yeah, the docs have a mistake here, been meaning to fix it but haven't had time. The solution is giving a type argument to |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Andre601
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, the docs have a mistake here, been meaning to fix it but haven't had time. The solution is giving a type argument to
newBuilder
, i.e.AsynchronousCommandExecutionCoordinator.<CommandSender>newBuilder()