SpigotMapper extends Mapper<CommandSender, CommandListenerWrapper> { @Override protected ArgumentType<?> type(ArgumentCommandNode<CommandSender, ?> command) { var type = command.getType(); return type instanceof Type<?> ? ((Type<?>) type).mapped() : type; } SpigotMapper(CommandDispatcher<CommandSender> dispatcher);   }
@Test void type() { var bool = BoolArgumentType.bool(); assertEquals(bool, mapper.type(Argument.of("test", bool).build())); assertEquals(PlayerType.WORD, mapper.type(Argument.of("test", new PlayerType()).build())); }